Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeLanguages
JavaScript
ecma11
Let and Const Declarations

ECMAScript Language Specification, Version 11
13.3.1. Let and Const Declarations

Read this Section of the Authoritative Specification

https://www.ecma-international.org/ecma-262/11.0/index.html#sec-let-and-const-declarations

2 Documented Misconceptions

Misconception
ConstDeclarationCanBeLeftUninitialized
Declarations of constants do not need to be immediately initialized
Misconception
ConstReferenceImpliesImmutability
An object referred to by a const variable is an immutable object

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors