Design Patterns · Junior · Question 66 of 75
How do debounce and throttle differ?
- ✓Correct answer: Debounce runs the function after events stop for a delay; throttle runs it at most once per interval while events continue
- 2They're the same
- 3Throttle runs only once ever
Explanation
Debounce suits search-as-you-type; throttle suits scroll or resize handlers that must update periodically.