Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: