WebPlatformsetTimeoutfunction setTimeout#setTimeout(cb: (...args: any[]) => void,delay?: number,...args: any[],): numberSets a timer which executes a function once after the delay (in milliseconds) elapses. Returns an id which may be used to cancel the timeout. setTimeout(() => { console.log('hello'); }, 500); Parameters ##cb: (...args: any[]) => voidoptional#delay: number#<span>...args</span>: any[]Return Type #number
function setTimeout#setTimeout(cb: (...args: any[]) => void,delay?: number,...args: any[],): numberSets a timer which executes a function once after the delay (in milliseconds) elapses. Returns an id which may be used to cancel the timeout. setTimeout(() => { console.log('hello'); }, 500); Parameters ##cb: (...args: any[]) => voidoptional#delay: number#<span>...args</span>: any[]Return Type #number