Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Accessing Data From a Variable | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
JavaScript Essentials for Beginners - 1768407374405

bookChallenge: Accessing Data From a Variable

Task

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

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 17
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Accessing Data From a Variable

Swipe to show menu

Task

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 desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 17
single

single

some-alt