# number setInterval(function callback, number delay, any rest)

Sets a timer to execute a registered callback function according to the specified period (in ms).

# Parameters

# function callback

Callback function

# number delay

The time interval between callback function executions (in ms).

# any rest

param1, param2, ..., paramN and other additional parameters to be passed to the callback function.

# Return Values

# number

The timer number. You can pass this value to clearInterval to cancel the timer.