Explain what is Hoisting in Javascript
Loading
Explain what is Hoisting in Javascript
Hoisting allows you to use functions and variables before they’re declared
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution.
Here’s a great piece that allows you to have a look on all cases when hoisting is applied
https://www.digitalocean.com/community/tutorials/understanding-hoisting-in-javascript