Constant Reference, Not Value
The other new keyword for variable declaration in ES6 is
const, but it is often misinterpreted as being a “constant value”. Instead, in ES6 a
const represents aconstant reference to a value (the same is true in most languages, in fact). In other words, the pointer that the variable name is using cannot change in memory, but the thing the variable points to might change.