Glossary term
What is garbage collection? Meaning for developers
The engine automatically frees memory for anything nothing can reach any more. V8's collector is called Orinoco.
Learn it properly · JavaScript CoreLesson 13: JS Engine and V8 ArchitectureParser, interpreter (Ignition), compiler (TurboFan), memory heap and garbage collection — what the engine does between your file and the CPU. Watch a function climb V8's tiers and fall back on a deopt, and step through mark-and-sweep.