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
later in the article, when referencing nested lexical environments in functions, a variable is initialized as undefined. from my understanding, this is incorrect, as the engine knows about the variable, but is not referenced yet since it hasn't been declared.
if this is an incorrect assumption, please help me understand why it's undefined instead of uninitialized! i'd love to learn more about how this all works.
I think at that point the execution already passed the let declaration,
so it's not "uninitialized".
note:
chatgpt "partialy" agrees wirh a long explanation i didnt read.
then concludes the issue is wrong.
And offered a step by step correlation code-svg
i didnt read either.
Sorry my lazyness.
Activity
joaquinelio commentedon Oct 19, 2025
I think at that point the execution already passed the let declaration,
so it's not "uninitialized".
note:
chatgpt "partialy" agrees wirh a long explanation i didnt read.
then concludes the issue is wrong.
And offered a step by step correlation code-svg
i didnt read either.
Sorry my lazyness.
sujayhegde23 commentedon Jul 9, 2026
@aredmondd
could you mention which variable is initialized has undefined . are you referring to the counter variable?