Course Content
Introduction to JavaScript
Introduction to JavaScript
Challenge: Defining the Variable
Task
- Define a variable named
myVar
and assign the value15
to it. - Print the variable
myVar
to the console.
___ ___ = ___; 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.
let myVar = 15; console.log(myVar);
Everything was clear?