const
is like let
plus read-only
- const scope leaks too
scalar values are read-only
- e.g. a number
- or a string
complex types are NOT fully read-only
- array`s items can be changed
- object`s can be modified
const
declaration
const
is like let
plus read-only.
const
is like let
plus read-only