Facebook Pixel
What Is the Temporal Dead Zone (TDZ)?

Are let variables hoisted?

The answer

Yes. let variables are hoisted but remain inaccessible until initialization.

More FAQs in What Is the Temporal Dead Zone (TDZ)?

No. TDZ only applies to let and const.

It helps prevent bugs caused by accessing variables before initialization.

Yes. const variables also exist in the Temporal Dead Zone.

Still have questions?

Browse all our FAQs or reach out to our support team

Want to upskill yourself?

Your learning library

Small steps. Big possibilities.

Find your next course. Build something great.

Our courses are taking a Coffee break, but your curiosity shouldn't. Stay engaged with namastedev linkedin, youtube, discord and other resources while you wait.

0
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.
Please Login.