Skip to content

Commit 63acd3d

Browse files
authored
fix phrasing by deleting superfluous word
provides has -> provides
1 parent b6b06f6 commit 63acd3d

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

360360
That function has only one line: `return count++`, that will be executed when we run it.
361361

362-
5. When `counter()` is called, a new Lexical Environment is created for the call. It's empty, as `counter` has no local variables by itself. But the `[[Environment]]` of `counter` is used as the `outer` reference for it, that provides has access to the variables of the former `makeCounter()` call where it was created:
362+
5. When `counter()` is called, a new Lexical Environment is created for the call. It's empty, as `counter` has no local variables by itself. But the `[[Environment]]` of `counter` is used as the `outer` reference for it, that provides access to the variables of the former `makeCounter()` call where it was created:
363363

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

0 commit comments

Comments
 (0)