Variable Hoisting in JavaScript
Sep 15, 2022 · 1 min read · Hoisting is a default behaviour in JavaScript where all the declarations (variables & functions) are moved to the top of the current scope. I’m gonna discuss on variable hoisting today. Let’s understand the variable hoisting with the below sample. a ...
Join discussion