Successfully added
JavaScript
by Patrik
Const in JavaScript
The const keyword was introduced in ES6 (2015).
Scope
- Block scoped always
- Start to end of the current scope anywhere
Redeclaration
- No, can't redeclare or reinitialize it
Hoisting
- Hosted at top of some private and only available after assigning value
- Can not be used before the declaration
Referenced in:
Comments