DEV Community

loading...

Discussion on: Stop using var for declaring variables !!!

Collapse
athomsfere profile image
Austin French

Although, I'd point out:

a const is a constant, and not a variable.

Collapse
bryonmapes profile image
Bryon Mapes

However:

"The const declaration creates a read-only reference to a value. It does not mean the value it holds is immutable—just that the variable identifier cannot be reassigned. For instance, in the case where the content is an object, this means the object's contents (e.g., its properties) can be altered."