if(this.timerID !== undefined) { clearTimeout(this.timerID); } this.timerID = setTimeout(this.sendPayload, 4000);
if(this.timerID !== undefined) { clearInterval(intervalID); } const intervalID = setInterval(() => alert("Hello"), 3000);
Last updated 5 years ago