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

bookChallenge: Accessing Data From a Variable

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 17
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: Accessing Data From a Variable

Glissez pour afficher le menu

Tâche

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.

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 17
single

single

some-alt