No. TDZ only applies to let and const.
Yes. let variables are hoisted but remain inaccessible until initialization.
It helps prevent bugs caused by accessing variables before initialization.
Yes. const variables also exist in the Temporal Dead Zone.
Browse all our FAQs or reach out to our support team
Your learning library
Find your next course. Build something great.
LEARN. BUILD. GROW.