JavaScript in the Browser
setTimeout("alert('hello')",3000)
schedules a function to execute
after a number of milliseconds.setInterval("alert('hello')",3000)
invokes the function
repeatedly. Cancel with clearInterval()
setTimeout()
to 0 invokes it as soon as possible.10 of 66