You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,7 +149,7 @@ add2(10) // 12
149
149
## Closure
150
150
151
151
A closure is a way of accessing a variable outside its scope.
152
-
Formally, a closure is a technique for implementing lexically scopped named binding. It is a way of storing a function with an environment.
152
+
Formally, a closure is a technique for implementing lexically scoped named binding. It is a way of storing a function with an environment.
153
153
154
154
A closure is a scope which captures local variables of a function for access even after the execution has moved out of the block in which it is defined.
155
155
ie. they allow referencing a scope after the block in which the variables were declared has finished executing.
0 commit comments