A

Admin • 833.24K Points
Coach

Q. What is the purpose of garbage collection?

  • (A) Removes object with many reference
  • (B) Removes object with reference
  • (C) Removes object with invalid reference
  • (D) Removes object with no reference
  • Correct Answer - Option(D)
  • Views: 34
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

When the interpreter sees an object in the heap with no object references, it removes that object from the heap. This is called garbage collection.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.