Back to Content

Garbage collection

files/en-us/glossary/garbage_collection/index.md

latest1.0 KB
Original Source

Garbage collection is a term used in {{Glossary("computer programming")}} to describe the process of finding and deleting {{Glossary("object", "objects")}} which are no longer being {{Glossary("object reference", "referenced")}} by other objects.

In other words, garbage collection is the process of removing any objects which are not being used by any other objects. Often abbreviated "GC," garbage collection is a fundamental component of the memory management system used by {{Glossary("JavaScript")}}.

See also