Avant interview question

Write a function to clear all active setTimeouts. Follow-up question also on closure.