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

Sveip for å vise menyen

book
Challenge: Declaring a Variable

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 2

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

book
Challenge: Declaring a Variable

Oppgave

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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 2
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Vi beklager at noe gikk galt. Hva skjedde?
some-alt