function declaration wins or variable declaration in JavaScript Hoisting

added by DotNetKicks
9/28/2021 1:14:15 PM

258 Views

If you have a variable and a function declared with the same name, then which has a precedence over each other in the hoisting ? This video explains that. In JavaScript function and variable declarations are hoisted at the top of the execution context. You need to remember these three rules for on the same....


0 comments