❗accessing var before declaration gets undefined❗️
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)❗
Last updated