Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the difference between debounce and throttle?

  1. A Debounce waits until activity stops then runs once; throttle runs at most once per interval
  2. B Debounce runs immediately; throttle delays indefinitely
  3. C They are the same technique
  4. 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.

All Javascript MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as