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

Swipe to show menu

book
Challenge: Declaring a Variable

Task

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.

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Β 2
We're sorry to hear that something went wrong. What happened?

Ask AI

expand
ChatGPT

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

book
Challenge: Declaring a Variable

Task

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.

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Β 2
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