Beginner
JavaScript
Q10 / 100
What is the Temporal Dead Zone (TDZ)?
Correct! Well done.
Incorrect.
The correct answer is B) The period between entering a scope and the let/const declaration being initialized, during which accessing the variable throws ReferenceError
B
Correct Answer
The period between entering a scope and the let/const declaration being initialized, during which accessing the variable throws ReferenceError
Explanation
let x; console.log(x) is fine, but console.log(x) before let x = 5 throws ReferenceError due to TDZ.
Progress
10/100