Crossover for Work interview question

What is hoisting?

Interview Answer

Anonymous

14 Feb 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.