This is a companion discussion topic for the original entry at http://www.kirupa.com/html5/hoisting.htm
No mention of
The hoisting mechanics you describe are notional — “as if” — behavior. Also, hoisting happens because it’s in the language spec, not because it’s an optimization. It’s mostly a vestigial remnant of early versions of JS.
Kirupa’s biggest fans are also his harshest critics.
Haha! Thanks for pointing these out. I will address them shortly