Timers: setTimeout and setInterval

setTimeout runs a function once after a delay, setInterval runs it again and again, and clearTimeout and clearInterval cancel them with the ID each timer hands back.

Updated

Cheat sheet: Timers: setTimeout and setInterval
Category
JavaScript
Level
Apprentice
Tags
Callback Function, clearInterval(), clearTimeout(), JavaScript, setInterval(), setTimeout()