Hoisting allows you to use functions and variables before they’re declared
Interviews2 answers
Explain what is Hoisting in Javascript
2 Answers
Rajeev KumarPosted Mar 9, 2023, 8:44 AM EST
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
Bohdan StupakPosted Apr 29, 2022, 11:37 AM EDT


