Skip to content

Commit 72314be

Browse files
Updated Notes
1 parent 49b9f6c commit 72314be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Notes/10-Closures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ console.log(z); // value of z is entire code of function y.
2020
```
2121

2222
When functions are returned from another fun, they still maintain their lexical scope.
23-
- When y is returned, not only is the fun returned, but the entire closure (fun y + its lexical scope) is returned and put inside z. So when z is used
23+
- When y is returned, not only is the fun returned but the entire closure (fun y + its lexical scope) is returned and put inside z. So when z is used
2424
somewhere else in program, it still remembers var a inside x()
2525

0 commit comments

Comments
 (0)