Junior JavaScript

What is the Temporal Dead Zone (TDZ)?

The period between variable declaration and initialization where it cannot be accessed.

Example:

console.log(x); // ReferenceError

let x = 10;

More from JavaScript Tutorial

All questions for this course