Skip to content

Commit 5197701

Browse files
authored
Merge pull request #1466 from hrodward/patch-6
Update article.md
2 parents 615609e + 994c76b commit 5197701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/06-advanced-functions/03-closure/article.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ sayHi(); // Pete
184184
The execution flow of the code above:
185185

186186
1. The global Lexical Environment has `name: "John"`.
187-
2. At the line `(*)` the global variable is changed, now it has `name: "Pete"`.
188-
3. When the function `sayHi()`, is executed and takes `name` from outside. Here that's from the global Lexical Environment where it's already `"Pete"`.
187+
2. At the line `(*)` the global variable is changed. Now it has `name: "Pete"`.
188+
3. When the function `sayHi()` is executed it takes `name` from outside, the global Lexical Environment, where its value is already `"Pete"`.
189189

190190

191191
```smart header="One call -- one Lexical Environment"

0 commit comments

Comments
 (0)