InterviewLane
CategoriesRoadmapsPlansResources
CategoriesRoadmapsPlansResources
InterviewLane

The frontend interview prep platform built by engineers, for engineers.

PracticeCategoriesRandom roundDaily challenge
RoadmapsAll roadmapsFrontend foundationsSenior frontend
Plans7-day refresher30-day deep prep90-day mastery
AccountDashboardBookmarksSign in
© 2026 InterviewLane
TermsPrivacyBuilt for senior frontend engineers
Fri, 15 May 2026

Daily Challenge

One question, deterministic per UTC date. Read it, think it through, mark it complete to extend your streak.

browser-internals · medium

What triggers garbage collection in JavaScript?

V8 runs a generational, incremental, mostly-concurrent mark-and-sweep collector. GC is triggered by heap-size thresholds — minor GC (young generation, Scavenge) fires often and is fast; major GC (Mark-Compact, full heap) fires on memory pressure or idle. You can't manually trigger it from JS, only influence it by dropping references and avoiding accidental retainers (closures, listeners, detached DOM, globals).

Open question