🔰var hoisting
identifier hoisted to top of "function scope", value initialized to `undefined`❗️
Last updated
identifier hoisted to top of "function scope", value initialized to `undefined`❗️
Last updated
JS ⟩ scope ⟩ hoisting ⟩ var hoisting
with a var declaration
identifier: hoisted to the top of its enclosing function scope. ( 👉 var has no block scope❗️)
var has no block scope❗️ - var only has function scope.