Hoisting in JavaScript - Yash Agrawal over on the codeburst.io Medium blog describes “Hoisting” in JavaScript. This is a great explanation, and I’d argue a correct one, when mentioning the two pass interpretation of JavaScript. ;) Hoisting is not magic, there is a reason this happens.