Debounce
Fires only after you stop typing for 300ms. Rapid keystrokes reset the timer.
Learn by tweaking values and watching runtime behavior. A curated sandbox for the modern engineer.
Category mastery
2 of 6 patterns mastered
Fires only after you stop typing for 300ms. Rapid keystrokes reset the timer.
Move your mouse over the box. The handler fires at most once per 120ms.
Caches results by arguments. Same args -> instant return, no recomputation.
Images are not fetched until they scroll into view. IntersectionObserver swaps data-src -> src on intersection.
Linear scan vs building a new array — Big-O and early-exit behaviour in interviews.
Write any JavaScript. memoize, debounce, and throttle are provided (Monaco: globals; Sandpack: imported from a helper file).