Hoisting in JavaScript
Function hoisting
Here the functions are moved to the top of their scope, so that they can be used further. But here are some exceptions in javaScript where the function hoisting doesn't works
Cases where hoisting doesn’t works:
1.When function is written inside the parentheses
2. In function expressions
3. In the arrow functions
Variable Hoisting
So, this is how the concept of hoisting works in javaScript!
Software Engineer III @ Oracle Cerner Corporation
3yThanks for sharing 👍