All challenges
JavaScript challenge · Frontend
Throttle
Difficulty
medium
Time
~20m
Format
Single
Grading
Auto-graded
#frontend#javascript#typescript#timing#closures
Mission file // read carefullymedium
Implement throttle(fn, wait) (leading edge): invoke fn immediately on the first call, then ignore further calls until wait ms have passed; after that the next call invokes again. Use setTimeout.
Build with
TypeScriptJavaScript
Hidden test suite
Auto-graded on submit
Start challenge
Sign in to save your progress.