Temporal Dead Zone
noun
say it: “TEM-per-ul DED zohn” /ˈtɛmpərəl dɛd zoʊn/
The stretch of a block before a let or const line, where the variable already exists but using it stops the program with an error.
What is Temporal Dead Zone in JavaScript?
Temporal Dead Zone — The period where a block-scoped variable exists but cannot be accessed before its declaration.
{
const status = "Ready";
}
In a sentence
- “I logged total above its let line, and the temporal dead zone stopped the program with Cannot access 'total' before initialization.”
Level: Master · More JavaScript terms at this level
Updated