4 ms·
There's an error in your good solution. window.clearInterval(this.timeoutId); should be window.clearTimeout(this.timeoutId); You use clearInterval with setInte
by TheSisb2 13y ago
There's an error in your good solution.
window.clearInterval(this.timeoutId);
should be
window.clearTimeout(this.timeoutId);
You use clearInterval with setInterval, and clearTimeout with setTimeout.