accessing var before declaration gets undefined❗️
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ ⟩ 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)
replit: