Goal: In the Variables lesson, we learned:
let
and const
Practice creating and utilizing variables by completing the exercises listed below. Variables are a fundamental building block of programming; so begin getting comfortable with them now!
let
and const
used? What do they mean - and how are they different from var
?Here are a few exercises for you to practice using variables:
someName
equal to your name. Put your name in quotation marks.someName
in the console.someName
.favoriteNumber
equal to your favorite number.michaelsFavorite
equal to 13
.michaelsFavorite
to 7
.
Lesson 8 of 61
Last updated January 20, 2021