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 AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.33
Challenge: Define the Variable
Swipe to show menu
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