Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Task - Accessing Data From a Variable | Manipulating Data
Introduction to JavaScript
course content

Course Content

Introduction to JavaScript

Introduction to JavaScript

1. Getting Started
2. Manipulating Data
3. Conditional Statements

book
Task - Accessing Data From a Variable

Task

Swipe to start coding

Your task is to:

  • 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:
python

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Β 2. ChapterΒ 3
toggle bottom row

book
Task - Accessing Data From a Variable

Task

Swipe to start coding

Your task is to:

  • 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:
python

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Β 2. ChapterΒ 3
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt