From 63acd3dd7dcf0d7e27232c5cde97271dad637fae Mon Sep 17 00:00:00 2001 From: daGo Date: Fri, 2 Aug 2019 10:11:43 +0300 Subject: [PATCH] fix phrasing by deleting superfluous word provides has -> provides --- 1-js/06-advanced-functions/03-closure/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/06-advanced-functions/03-closure/article.md b/1-js/06-advanced-functions/03-closure/article.md index ee6cc0dd..e7d8c7d4 100644 --- a/1-js/06-advanced-functions/03-closure/article.md +++ b/1-js/06-advanced-functions/03-closure/article.md @@ -359,7 +359,7 @@ Please note the additional `[[Environment]]` property is covered here. We didn't That function has only one line: `return count++`, that will be executed when we run it. -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: +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: ![](lexenv-nested-makecounter-5.svg)