🔰let/const/class hoisting
🚧 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
Last updated