DEV Community

Discussion on: Start Javascript: learn about variables

Collapse
 
robbevwinckel profile image
robbevwinckel

In Javascript const is a bit misleading. It does not define a constant, but it's a one-time assignment. It's a constant reference to a value.

Because of this you can not change constant primitive values, but you can change properties of a constant object.