Skip to content

Commit 994c76b

Browse files
authored
Update article.md
Punctuation marks fixes
1 parent 95f61ee commit 994c76b

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)