All Interview Questions

Browse all 115 interview questions and challenges.

Type:
Sort:
Difficulty:

Learn how to limit concurrent API calls in JavaScript using async queues and promise batching β€” a crucial skill for scalable frontend systems.

advancedasync and-promisesjavascriptpromisesasync-await

Learn to build a robust retry mechanism for failed API calls, handling transient network errors gracefully.

intermediateasync and-promisesjavascriptpromisesretry

Understand how JavaScript handles tasks, microtasks, and macrotasks β€” and how to control async execution order effectively.

intermediateasync and-promisesjavascriptevent looppromises

Avoid inconsistent state in JavaScript apps by managing promise resolution order β€” essential for frontend data fetching and UI sync.

intermediateasync and-promisesjavascriptasyncrace condition

Prevent multiple token refreshes when parallel API calls fail β€” learn how to design a shared promise-based refresh mechanism.

advancedasync and-promisesjavascriptauthenticationpromises

Implement a robust deep-clone that handles Dates, RegExps, functions (optionally), and circular references β€” and know tradeoffs.

advancedbrowser and-domjavascriptdeep cloneobjects

Use event delegation to reduce listeners, support dynamic elements, and improve performance β€” with patterns for delegation exceptions and delegation libraries.

intermediatebrowser and-domjavascriptevent delegationdom

Diagnose memory growth, understand mark-and-sweep, and apply strategies to prevent leaks in web apps and Node services.

advancedbrowser and-domjavascriptmemorygarbage collection

Build a lightweight lazy-loading system that defers image downloads until they’re likely to be visible β€” without IntersectionObserver.

intermediatebrowser and-domjavascriptlazy-loadingimages

Move CPU-heavy tasks off the main thread with Web Workers and message passing β€” best practices, fallbacks, and performance considerations.

advancedbrowser and-domjavascriptweb workersperformance

Learn how to create a custom debounce function that fires both on the leading and trailing edge β€” ideal for responsive search inputs.

intermediateperformance optimizationjavascriptdebounceperformance

Learn how memory leaks occur in single-page apps, how to diagnose them using Chrome DevTools, and how to fix common leak sources.

advancedperformance optimizationjavascriptmemory leaksdevtools

Implement efficient infinite scrolling using IntersectionObserver, batching, and virtualized rendering.

advancedperformance optimizationjavascriptinfinite scrollperformance

Prevent performance issues by throttling high-frequency events like resize or scroll using a custom JavaScript throttle implementation.

intermediateperformance optimizationjavascriptthrottleresize

Process large datasets without freezing the UI using setTimeout, requestIdleCallback, or Web Workers.

advancedperformance optimizationjavascriptperformanceevent loop

Learn how to transform functions into reusable, smaller functions using currying and partial application.

advancedadvanced conceptsjavascriptfunctional programmingcurrying

Learn how to control function execution rates using debouncing and throttling for performance optimization.

advancedadvanced conceptsjavascriptperformancedebounce

Learn how event delegation lets you handle events efficiently by listening on a parent instead of multiple child elements.

advancedadvanced conceptsjavascripteventsdom

Understand how JavaScript automatically frees memory using reachability and reference checks.

advancedadvanced conceptsjavascriptmemorygarbage collection

Learn how iterators define custom iteration behavior and how generators make writing them easier.

advancedadvanced conceptsjavascriptgeneratorsiterators
...