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
Copy file name to clipboardExpand all lines: 1-js/06-advanced-functions/03-closure/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,7 +149,7 @@ The inner Lexical Environment has a reference to the `outer` one.
149
149
150
150
**When the code wants to access a variable -- the inner Lexical Environment is searched first, then the outer one, then the more outer one and so on until the global one.**
151
151
152
-
If a variable is not found anywhere, that's an error in strict mode (without `use strict`, an assignment to an undefined variable, like `user ="John"` creates a new global variable `user`, that's for backwards compatibility).
152
+
If a variable is not found anywhere, that's an error in strict mode (without `use strict`, an assignment to a non-existing variable, like `user ="John"` creates a new global variable `user`, that's for backwards compatibility).
0 commit comments