function setIntervalsetInterval(cb: (...args: any[]) => void,delay?: number,...args: any[],): numberDeprecatedRepeatedly calls a function , with a fixed time delay between each call. // Outputs 'hello' to the console every 500ms setInterval(() => { console.log('hello'); }, 500); Parameterscb: (...args: any[]) => voidoptionaldelay: number<span>...args</span>: any[]Return Typenumber