Temporal Dead Zone (TDZ): An bug like feature of JavaScript
I was deep-diving into JavaScript internals, especially Execution Context, and something interesting caught my attention.
I discovered that let and const are also hoisted. But instead of behaving like var, they are placed into something called the Temporal Dead Zone (TDZ). So let’s explore this behaviour
Temporal Dead Zone (TDZ): An bug like feature of JavaScript Read Post »