Write a Debounce
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
A resize handler recalculates a chart hundreds of times while the user drags the window. Explain how you'd write a debounce function that only runs the work once the user has stopped for a quarter of a second, and how it differs from throttling.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.