You've learned that variables are like labeled boxes that store information. Now let's practice creating and using them effectively.
Engagement Message
Ready to become a variable master?
Type
Multiple Choice
Practice Question
Which line of code correctly creates a variable named playerName
and stores the value "Alex"
in it?
A. let playerName = "Alex"
B. "Alex" = playerName
C. playerName == "Alex"
D. Alex = playerName
Suggested Answers
- A - Correct
- B
- C
- D
Type
Fill in The Blanks
Markdown With Blanks
Complete the code to create a variable called age
with the value 25
, then print it:
Suggested Answers
- let
- age
- 25
- age
