How does garbage collection work in JS? By Jaspreet · 2026-06-08 Trying to understand memory management. When does V8 actually free up memory?