DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Interview Prep Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Interview Prep
Why are debounce and throttle described as testing closures specifically?
A
They don't test closures at all, only timers
B
The returned function needs persistent state (a timer id, a lastCall timestamp) that survives between separate invocations of the returned function, which is exactly what a closure provides
C
Closures are required syntax for using setTimeout
D
Because they both return arrow functions
Check Answer