You can exit from the execution of a loop by using the 'break' keyword.
Rounding methods are available on the Math object and on numeric data.
setTimeout() and setInterval() allow you to delay the execution of code or run it repeatedly.
Learn how you can delay a function call using setTimeout() – and cancel one you've already set.
How to check if a user has provided input to a HTML input element.