Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
3 questionsWhat is the difference between synchronous and asynchronous code?
Frontend ยท 420 views ยท sync-async
What is the difference between map and forEach?
Frontend ยท 213 views ยท array-methods
How does `try...catch` work in JavaScript?
Frontend ยท 60 views ยท error handling, try/catch, exceptions
Medium
12 questionsHow does the fetch API work?
Frontend ยท 1.1k views ยท fetch
Implement a robust Event Emitter class.
DSA ยท 1.1k views ยท design-patterns, pubsub, event-emitter
How do you handle asynchronous operations in JavaScript?
Frontend ยท 784 views ยท async, promises, async/await
How do you implement a custom Promise.all polyfill?
DSA ยท 724 views ยท promises, polyfill, async
Why is navigator.sendBeacon() the right tool for sending analytics data when a user closes a tab, instead of a normal fetch call?
Frontend ยท 577 views ยท utility, tricky, real-world
How would you use MutationObserver to detect when a third-party script injects new nodes into the DOM?
Frontend ยท 440 views ยท observers, tricky, real-world
What does `using` / `await using` do for Explicit Resource Management (ES2024)?
Frontend ยท 420 views ยท es2024, using, resource
How do you make an AJAX request?
Frontend ยท 387 views ยท ajax, fetch, xmlhttprequest
Hard
11 questionsExplain the event loop, call stack, and task queues.
Frontend ยท 1.2k views ยท event-loop
How does `Atomics.waitAsync()` enable non-blocking waits on SharedArrayBuffer?
DSA ยท 1.1k views ยท atomics, sharedarraybuffer, concurrency
Implement an async task queue with a concurrency limit.
System Design ยท 1.1k views ยท promises, concurrency, queue
What are async iterators and for await...of?
Frontend ยท 1.0k views ยท async-iterators
How would you implement an async generator function to stream paginated API results, and how does a consumer use it with for await...of?
DSA ยท 802 views ยท async-generator, generators, async-iteration
How do you implement a custom Promise.any polyfill?
DSA ยท 541 views ยท promises, polyfill, async
What is the event loop?
Frontend ยท 473 views ยท event loop, concurrency, single-thread
How do you combine Stage 3 decorators with `using` for auto-disposable resources?
Frontend ยท 457 views ยท decorators, using, resource
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question