Schedule a function

The global setInterval function schedules a certain function to be repeatedly executed at the given time interval.

Loading TypeScript...

The interval is defined in milliseconds, so 1000 is 1 second.

Was this page helpful?