Constants in Javascript - ECMAScript 6
06 Jun 2016
Const
In ECMAScript 6 we have const variable arrived. Does it work the same as C++ const?
Not exactly. I would even say, “not at all”.
When you declare something with const in ECMAScript 6, it means that the identifier can’t be reassigned.
What does it mean?
ECMAScript 6 review, explanation, comparsion with ECMAScript 5