Javascript Flashcards

1
Q

How does browser know when to delete a javascript object?

A

Mark and Sweep

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is mark and sweep?

A

All reachable objects are found by searching from the root object. If a variable is unreachable it is deleted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly