Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Define the Variable | Variables and Data Types in JavaScript
Introduction to JavaScript
Sectionย 2. Chapterย 2
single

single

bookChallenge: Define the Variable

Swipe to show menu

Task

Swipe to start coding

  1. Define a variable named myVar and assign the value 15 to it.
  2. Print the variable myVar to the console.

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

Ask AI

expand

Ask AI

ChatGPT

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

some-alt