DEV Community

Discussion on: Temporal Dead Zone in JavaScript Explained (TDZ)

Collapse
 
drgaud profile image
DrGaud

Great Article man, thanks for explaining that to me man, I have been wondering why I would get caught out by that reference error. When I looked at my code I would see that I would declare something after calling it, 'TDZ', I often thought that It was a result of me writting it wrongly. This gives me a better sense of clarity to why Im getting that error.

Collapse
 
alexdevero profile image
Alex Devero

I'm glad it helped DrGaud.