Language concepts
Temporal dead zone
A lexical binding exists but is not readable until initialized. Access during this interval throws ReferenceError, including typeof of the uninitialized name. Its scope is determined by lexical structure, and a matching outer binding is not used as a fallback. The example reads after initialization.
Formal Syntax & Structure
javascript syntaxjavascript
{ let total = 1; console.log(total); }Working Example
Example Snippetjavascript
{ let total = 1; console.log(total); }