

This is most commonly used with the clearTimeout() method (see below). setTimeout() also returns a numeric timeout ID that can be used to track the timeout. Where expression is the JavaScript code to run after timeout milliseconds have elapsed. tTimeout() allows you to specify that a piece of JavaScript code (called an expression) will be run a specified number of milliseconds from when the setTimeout() method was called. In this tutorial we’ll explain how these two methods work, and give some practical examples. These let you run a piece of JavaScript code at some point in the future. JavaScript features a handy couple of methods of the window object: setTimeout() and setInterval().
