Variables (let / const)
Creating variables, constants with const, mutable variables with let, and naming rules.
Simple enough for a 5-year-old to understand
let and const
Values defined with const cannot be changed; those defined with let can. Both are like sticking a label on a box.
let counter = 0;counter = 5;const pi = 3.14;console.log(counter, pi);🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)