function declaration wins or variable declaration in JavaScript Hoisting

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. … Continue reading function declaration wins or variable declaration in JavaScript Hoisting