Vidyalelo
JavaScript · Q48

Caching And Debugging

Programming · JavaScript · question 48

Q48

When does a cycle occur during memory leak?

A.
No reference occurs
B.
Two objects reference
Answer
C.
One object gets referenced
D.
None of the above

Answer: Option B

Solution

Answer: Option B
Solution:
A cycle happens when two objects reference each other in such a way that both objects retain each other.