You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This one is kind of misleading, as var t does not actually return the value of t but rather of the whole expression.
> var t
undefined
> t == undefined
true
> t = "Defined"
'Defined'
> var t
undefined // <-- not actually the value of t
> t
'Defined' // <-- t remains defined
As var t not resetting t may still be a WTF moment for some, this post should be renamed (either var t does not reset t or the repl is intuitive for some).
Also, the linked source was talking about undefined being mutable, which it is notanymore.
The text was updated successfully, but these errors were encountered:
This one is kind of misleading, as
var t
does not actually return the value oft
but rather of the whole expression.As
var t
not resettingt
may still be a WTF moment for some, this post should be renamed (eithervar t
does not resett
or the repl is intuitive for some).Also, the linked source was talking about
undefined
being mutable, which it is not anymore.The text was updated successfully, but these errors were encountered: