DEV Community


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

athomsfere profile image
Austin French

Although, I'd point out:

a const is a constant, and not a variable.

bryonmapes profile image
Bryon Mapes


"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."