Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Improving Even or Odd Checker | Section
JavaScript Essentials for Beginners - 1768407374405

bookChallenge: Improving Even or Odd Checker

Tâche

Swipe to start coding

In one of the previous tasks, we created an "Even or Odd" checking program. The code for that program is given.

Make the code shorter by removing the second conditional statement and using an else block instead.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 37
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

close

bookChallenge: Improving Even or Odd Checker

Glissez pour afficher le menu

Tâche

Swipe to start coding

In one of the previous tasks, we created an "Even or Odd" checking program. The code for that program is given.

Make the code shorter by removing the second conditional statement and using an else block instead.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 37
single

single

some-alt