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

Sign up
Appearance settings

Commit f4afae8

Browse files
Update 12-JSInterview-Closures.md
1 parent f8db561 commit f4afae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Notes/12-JSInterview-Closures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ counter1.decrementCounter();
6363
### Disadvantages of closure
6464
- Overconsumption of memory when using closure as everytime as those closed over variables are not garbage collected till program expires.
6565
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
6767
programmer, but in JS engine its done implicitly.
6868

6969
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /