Explain what is Hoisting in Javascript
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 appliedhttps://www.digitalocean.com/community/tutorials/understanding-hoisting-in-javascript
Hoisting allows you to use functions and variables before they’re declared