Challenge: Define the Variable
Task
Define a variable named
myVar
and assign the value15
to it.Print the variable
myVar
to the console.
123___ ___ = ___; console.log(___);
Use the
let
keyword to declare a variable.Assign the value 15 to the variable using the assignment operator (
=
).Use the
console.log()
function to print the variable's value to the console.
123let myVar = 15; console.log(myVar);
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 2
Ask AI
Ask anything or try one of the suggested questions to begin our chat