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

bookChallenge: Declaring a Variable

Task

Swipe to start coding

In the given code, there's a console.log statement trying to output a variable called users.

Your task:

  • Declare a variable called users.
  • Assign it the value 157.

The program should output:

Number of Users: 157

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 2
single

single

Ask AI

expand

Ask AI

ChatGPT

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

close

bookChallenge: Declaring a Variable

Swipe to show menu

Task

Swipe to start coding

In the given code, there's a console.log statement trying to output a variable called users.

Your task:

  • Declare a variable called users.
  • Assign it the value 157.

The program should output:

Number of Users: 157

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
single

single

some-alt