exercise demonstrating the use of timers in JavaScript