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: Notes/12-JSInterview-Closures.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
@@ -63,7 +63,7 @@ counter1.decrementCounter();
63
63
### Disadvantages of closure
64
64
- Overconsumption of memory when using closure as everytime as those closed over variables are not garbage collected till program expires.
65
65
So when creating many closures, more memory is accumulated and this can create memory leaks if not handled.
66
-
-**Garbage collector : **Program in JS engine or browser that frees up unused memory. In highlevel languages like C++ or JAVA, garbage collection is left to the
66
+
-**Garbage collector** : Program in JS engine or browser that frees up unused memory. In highlevel languages like C++ or JAVA, garbage collection is left to the
0 commit comments