WebPlatformsetIntervalfunction setInterval#setInterval(cb: string | ((...args: any[]) => void),delay?: number,...args: any[],): numberRepeatedly calls a function , with a fixed time delay between each call. // Outputs 'hello' to the console every 500ms setInterval(() => { console.log('hello'); }, 500); Parameters ##cb: string | ((...args: any[]) => void) #delay: number optional#...args: any[] Return Type #number
function setInterval#setInterval(cb: string | ((...args: any[]) => void),delay?: number,...args: any[],): numberRepeatedly calls a function , with a fixed time delay between each call. // Outputs 'hello' to the console every 500ms setInterval(() => { console.log('hello'); }, 500); Parameters ##cb: string | ((...args: any[]) => void) #delay: number optional#...args: any[] Return Type #number