🚧 under construction -> example
JS ⟩ scope ⟩ hoisting ⟩ let/const/class
with let / const / class declaration:
identifier: hoisted to top of its scope.
value: uninitialized❗(referencing it before init causes ReferenceError)
compare: var hoisting, function hoisting
replit:let const hoisting
YDKJS: Scope & Closures (v.2) ⟩
Ch. 1arrow-up-right ⟩ Hoistingarrow-up-right
Ch. 5 ⟩ Hoisting: Declaration vs. Expressionarrow-up-right
Last updated 3 years ago