From e4e6a50b5762dd5dc4c0f0c58f870c64be39dcfa Mon Sep 17 00:00:00 2001 From: Peter Roche <46547072+paroche@users.noreply.github.com> Date: Sun, 21 Jun 2020 03:51:06 -0600 Subject: [PATCH] '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-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 497f6dfa..90d1d735 100644 --- a/1-js/06-advanced-functions/03-closure/article.md +++ b/1-js/06-advanced-functions/03-closure/article.md @@ -286,7 +286,7 @@ Later, when `counter()` is called, a new Lexical Environment is created for the ![](closure-makecounter-nested-call.svg) -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. +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. **A variable is updated in the Lexical Environment where it lives.**