Frage im Vorstellungsgespräch bei Moat

How would you implement a timer with closures in Javascript?