Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
3 questionsWhat is the difference between var, let, and const?
Frontend ยท 1.2k views ยท var, let, const
What is the difference between synchronous and asynchronous code?
Frontend ยท 422 views ยท sync-async
What is the difference between map and forEach?
Frontend ยท 216 views ยท array-methods
Medium
7 questionsHow do you handle asynchronous operations in JavaScript?
Frontend ยท 786 views ยท async, promises, async/await
How would you use ResizeObserver to react to an element's size changing, without polling getBoundingClientRect() on every frame?
Frontend ยท 647 views ยท observers, tricky, real-world
What is the difference between arrow and regular functions?
Frontend ยท 638 views ยท arrow-functions
What is the purpose of the `bind`, `call`, and `apply` methods?
Frontend ยท 575 views ยท this, functions, context
How would you use IntersectionObserver to lazy-load images only as they scroll into the viewport?
Frontend ยท 545 views ยท observers, tricky, real-world
What does queueMicrotask() do, and how does its callback ordering compare to a resolved Promise .then() and setTimeout(fn, 0)?
Phone Screen ยท 502 views ยท event-loop, microtask, queuemicrotask
How would you use MutationObserver to detect when a third-party script injects new nodes into the DOM?
Frontend ยท 443 views ยท observers, tricky, real-world
Hard
6 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
In what order do console.log, setTimeout, and Promise.then run?
Frontend ยท 778 views ยท event-loop, order
What is the event loop?
Frontend ยท 474 views ยท event loop, concurrency, single-thread
What is the difference between microtasks and macrotasks?
Frontend ยท 420 views ยท event-loop, microtask
How do you implement a simple Promise library from scratch?
DSA ยท 182 views ยท promises, polyfill, async
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question