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

bookChallenge: Improving Even or Odd Checker

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 37
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Improving Even or Odd Checker

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 1. Luku 37
single

single

some-alt