Skip to content
JavaScript·Advanced·Conceptual·1 min read

What is generational garbage collection?

Short interview answer

It organizes objects by observed lifetime so short-lived values can be collected frequently while older survivors are scanned differently. Exact strategies remain engine implementation details.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Memory management

Related questions