Skip to content

Commit 515e5fd

Browse files
committed
minor
1 parent 51cf334 commit 515e5fd

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

+1-1
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 creates a new global variable, for backwards compatibility.
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).
153153
154154
Let's see how the search proceeds in our example:
155155

0 commit comments

Comments
 (0)