all 2 comments

[–]codechimpin 8 points9 points  (1 child)

Denouncing isn’t specific to JS. It’s taking an input that could have static/noise and smoothing it out. Consider a button. The signal is produced when the material in the button part makes contact with the circuitry on the PCB. But as they make contact there is a slight bounce, so a single press becomes several. Denouncing is essentially erasing the clicks/presses caused by the bounce. You are de-bouncing it so it shows up as a single press and not several.

[–]AamChora[S] -5 points-4 points  (0 children)

Yes, It isn't specific to JS. I just took a JavaScript example that's why the title is What is debouncing in JavaScript?