Crossover for Work Interview Question

What is hoisting?

Interview Answer

Anonymous

Feb 14, 2018

In JavaScript, variable declarations are executed through out the program before any code is executed. Therefore declaring a variable anywhere in the code is equivalent to declaring it at the beginning.