Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d606fb7

Browse files
committed
minor
1 parent 515e5fd commit d606fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎1-js/06-advanced-functions/03-closure/article.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ The inner Lexical Environment has a reference to the `outer` one.
149149
150150
**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.**
151151
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).
153153
154154
Let's see how the search proceeds in our example:
155155

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /