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
If during assignment of a let you assign a syntax error, your variable will become un-useable.
For an example let a = Ahhhh.
> let a = Ahhh
ReferenceError: Ahhh is not defined
> a
ReferenceError: a is not defined
> a = 5
ReferenceError: a is not defined
> typeof a
ReferenceError: a is not defined
> let a = 10
SyntaxError: Identifier 'a' has already been declared
>
If during assignment of a
let
you assign a syntax error, your variable will become un-useable.For an example
let a = Ahhhh
.I suspect this is related to the temporal dead zone as described at developer.mozilla.org/let#Temporal_Dead_Zone.
The text was updated successfully, but these errors were encountered: