DEV Community

Discussion on: Modern JavaScript explained in a way you've never seen before 🔥

Collapse
 
sergei profile image
Sergei Sarkisian • Edited

The variable should also be declared using "const." It cannot be redefined and can only have a fixed value.

Not perfectly correct. The link (reference) to the value is fixed and can not be changed, but the value itself can be mutated (e.g. in case of objects or arrays).