Put in order · JavaScript and TypeScript course · Module 10: TypeScript in Practice

Phases of Garbage Collection

Arrange the phases of the garbage collection process in the correct order:

Items to put in order

  • Sweep - removing unreachable objects from memory
  • Compact - defragmenting and compacting memory
  • Mark - marking active (reachable) objects

You can check the correct answer by solving this task in the CodeWorlds game.