Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Declaring a Variable | Section
JavaScript Fundamentals
Section 1. Chapter 15
single

single

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 1. Chapter 15
single

single

Ask AI

expand

Ask AI

ChatGPT

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

some-alt