Skip to content

Instantly share code, notes, and snippets.

Avatar
❤️
Loving

Mohamed Elashmawy moelashmawy

❤️
Loving
View GitHub Profile
@moelashmawy
moelashmawy / 0.md
Created May 1, 2020 — forked from maxogden/0.md
JS hoisting by example
View 0.md

JavaScript function hoisting by example

Below are many examples of function hoisting behavior in JavaScript. Ones marked as works successfuly print 'hi!' without errors.

To play around with these examples (recommended) clone them with git and execute them with e.g. node a.js

Notes on hoisting

(I may be using incorrect terms below, please forgive me)