Javascript - Constants
📖 Read the lesson
Code Life
By Pierre Marsaa
Constants with const
Sometimes you want a variable that
never changes
. For this, use
const
(short for "constant"):
↗️
Loading editor...
↶
▶️ Run
↷
These values won't change during your program - they're
constant
!
Verify