jpcasa
12/21/2018 - 4:31 PM

JS: Hoisting

Hoisting

Hoisting is a process of pushing the declared variables to the top of the program while running it. For Ex:

doSomething(foo); // used before
var foo; // declared later