DEV Community

John
John

Posted on • Updated on

Day 10 - 30 Days learn Web Dev

14 Dec 2023

Finished:
2627. Debounce

What I learn:

  • What is Debounce in Javascript and its usage.
  • It is guaranteed that a timeoutID value will never be reused by a subsequent call to setTimeout() or setInterval() on the same object (a window or a worker).

Fun fact: we can use clearTimeout() and clearInterval() interchangeably.

Top comments (2)

Collapse
 
joolsmcfly profile image
Julien Dephix

Hi.

Fun fact: we can use clearTimeout() and clearInterval() interchangeably.

Just because you can doesn't mean you should. It's confusing. ^^

Collapse
 
johnc profile image
John

Sure! I won't do that.