Workday interview question

Describe JavaScript garbage collection.