Declare a Mutable Variable
Fill in the Blank Beginner
Question
Fill in the blank to declare a variable that can be reassigned later.
Code
___ count = 0;
count = count + 1;
Hint
This keyword allows reassignment, unlike const.
Explanation
let is the correct keyword for a variable that will be reassigned. Using const would cause an error on the second line. The completed code is: let count = 0; count = count + 1;
Related Resources
Related Lessons
- Variables
Learn how variables work in programming.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.