What is the difference between debounce and throttle?
- A Debounce waits until activity stops then runs once; throttle runs at most once per interval
- B Debounce runs immediately; throttle delays indefinitely
- C They are the same technique
- D Throttle only works on scroll events
Answer
Debounce waits until activity stops then runs once; throttle runs at most once per interval
Debounce suits a search-as-you-type box where only the final input matters. Throttle suits scroll or resize handlers that need regular updates during the activity.





