Skip to content

Commit 3bd5789

Browse files
authored
Merge pull request #1424 from jamesblckwell/patch-1
Fixed typo on line 366
2 parents 6ae01a0 + f24a6e5 commit 3bd5789

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
@@ -363,7 +363,7 @@ Please note the additional `[[Environment]]` property is covered here. We didn't
363363

364364
![](lexenv-nested-makecounter-5.svg)
365365

366-
Now when the call looks for `count` variable, it first searches its own Lexical Environment (empty), then the Lexical Environment of the outer `makeCounter()` call, where finds it.
366+
Now when the call looks for `count` variable, it first searches its own Lexical Environment (empty), then the Lexical Environment of the outer `makeCounter()` call, where it finds it.
367367

368368
Please note how memory management works here. Although `makeCounter()` call finished some time ago, its Lexical Environment was retained in memory, because there's a nested function with `[[Environment]]` referencing it.
369369

0 commit comments

Comments
 (0)