Skip to content

Commit e4e6a50

Browse files
authored
'where finds it and changes' -> 'where it finds and changes it'
Was tempted to suggest something a bit wordier: "where it finds it and, in this case, changes it", but I thought this would do.
1 parent 1f7b137 commit e4e6a50

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
@@ -286,7 +286,7 @@ Later, when `counter()` is called, a new Lexical Environment is created for the
286286

287287
![](closure-makecounter-nested-call.svg)
288288

289-
Now when the code inside `counter()` looks for `count` variable, it first searches its own Lexical Environment (empty, as there are no local variables there), then the Lexical Environment of the outer `makeCounter()` call, where finds it and changes.
289+
Now when the code inside `counter()` looks for `count` variable, it first searches its own Lexical Environment (empty, as there are no local variables there), then the Lexical Environment of the outer `makeCounter()` call, where it finds and changes it.
290290

291291
**A variable is updated in the Lexical Environment where it lives.**
292292

0 commit comments

Comments
 (0)