Skip to content

Commit 49b9f6c

Browse files
Updated notes
1 parent 1138609 commit 49b9f6c

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
@@ -21,5 +21,5 @@ console.log(z); // value of z is entire code of function y.
2121

2222
When functions are returned from another fun, they still maintain their lexical scope.
2323
- 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
24-
somewhere else in program, it still remembers var a inside x().
24+
somewhere else in program, it still remembers var a inside x()
2525

0 commit comments

Comments
 (0)