Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Declaring a Variable | Manipulating Data
Introduction to JavaScript

Pyyhkäise näyttääksesi valikon

book
Challenge: Declaring a Variable

Tehtävä

Swipe to start coding

In the given code, there's a console.log line trying to output a variable called users.

  • Declare a variable called users.
  • Assign it a value of 157.

The code should output: Number of Users: 157.

Make sure you declare it at the correct place so that the code compiles successfully.

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 2. Luku 2

Kysy tekoälyä

expand
ChatGPT

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

book
Challenge: Declaring a Variable

Tehtävä

Swipe to start coding

In the given code, there's a console.log line trying to output a variable called users.

  • Declare a variable called users.
  • Assign it a value of 157.

The code should output: Number of Users: 157.

Make sure you declare it at the correct place so that the code compiles successfully.

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 2. Luku 2
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt