Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fe7175d

Browse filesBrowse files
authored
Fixed typo in function name
say() is not defined in the code, it should be sayHi() instead.
1 parent 62226ef commit fe7175d
Copy full SHA for fe7175d

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: 1-js/06-advanced-functions/03-closure/article.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.