Javascript Interview 101: Hoisting in Javascript.
Hoisting in Javascript's default behavior of moving declarations to the top of the current scope.
Example 1:
x = 5
console.log(x); // return 5
var x; // declaration part
Expand: Hoisting in JS is the behavior of JS when it will move all declaration...
haquocviet.hashnode.dev1 min read