Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Accessing Data From a Variable | Section
JavaScript Essentials for Beginners - 1768407374405

bookChallenge: Accessing Data From a Variable

Oppgave

Swipe to start coding

  • Create a variable firstName with value "Alice".
  • Create a variable lastName with value "Johnson".
  • Create a variable age with value 25.
  • Write a console.log statement outputting:
User: Alice Johnson is 25 years old.

Use the values of variables inside the console.log statement to generate this output.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 17
single

single

Spør AI

expand

Spør AI

ChatGPT

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

close

bookChallenge: Accessing Data From a Variable

Sveip for å vise menyen

Oppgave

Swipe to start coding

  • Create a variable firstName with value "Alice".
  • Create a variable lastName with value "Johnson".
  • Create a variable age with value 25.
  • Write a console.log statement outputting:
User: Alice Johnson is 25 years old.

Use the values of variables inside the console.log statement to generate this output.

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 1. Kapittel 17
single

single

some-alt