Explain Hoisting in…
 
Notifications
Clear all

Explain Hoisting in javascript.

2 Posts
3 Users
0 Likes
171 Views
0
Topic starter

Explain Briefly

2 Answers
0

JavaScript Hoisting refers to the process whereby the interpreter appears to move the declaration of functions, variables, classes, or imports to the top of their scope, prior to execution of the code

0

Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution. Inevitably, this means that no matter where functions and variables are declared, they are moved to the top of their scope regardless of whether their scope is global or local

Share: