Javascript Flashcards
1
Q
How does browser know when to delete a javascript object?
A
Mark and Sweep
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