Workday Interview Question

Describe JavaScript garbage collection.