Skip to content

Commit ae7a774

Browse files
authored
Merge pull request #475 from k-yang/patch-1
Fixed typo in function name
2 parents 11aaf5e + fe7175d commit ae7a774

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
@@ -175,7 +175,7 @@ The execution flow of the code above:
175175

176176
1. The global Lexical Environment has `name: "John"`.
177177
2. At the line `(*)` the global variable is changed, now it has `name: "Pete"`.
178-
3. When the function `say()`, is executed and takes `name` from outside. Here that's from the global Lexical Environment where it's already `"Pete"`.
178+
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"`.
179179

180180

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

0 commit comments

Comments
 (0)