❗accessing var before declaration gets undefined❗️
Last updated
Last updated
JS ⟩ variable ⟩ var ⟩ access before declaration gets "undefined"
(unexpected result)
var has no temporal dead zone, but accessing it before its declaration will get undefined, instead of its initial value (if exists)