Declare a JavaScript Constant
Fill in the BlankBeginner
Question
Fill in the blank to declare a constant named `MAX_SIZE` with value 100.
Code
___ MAX_SIZE = 100;
Hint
Use the keyword for constants.
Explanation
const is the correct keyword for a value that should not change. The completed line is: const MAX_SIZE = 100;. By convention, constants that represent configuration values often use UPPER_SNAKE_CASE naming.
Related Resources
Related Lessons
- JavaScript Variables
Learn about let, const, and var in JavaScript.
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.