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 ยท 420 views ยท sync-async
What is the difference between map and forEach?
Frontend ยท 213 views ยท array-methods
Medium
7 questionsHow do you handle asynchronous operations in JavaScript?
Frontend ยท 784 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 ยท 645 views ยท observers, tricky, real-world
What is the difference between arrow and regular functions?
Frontend ยท 637 views ยท arrow-functions
What is the purpose of the `bind`, `call`, and `apply` methods?
Frontend ยท 573 views ยท this, functions, context
How would you use IntersectionObserver to lazy-load images only as they scroll into the viewport?
Frontend ยท 543 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 ยท 499 views ยท event-loop, microtask, queuemicrotask
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
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 ยท 775 views ยท event-loop, order
What is the event loop?
Frontend ยท 473 views ยท event loop, concurrency, single-thread
What is the difference between microtasks and macrotasks?
Frontend ยท 417 views ยท event-loop, microtask
How do you implement a simple Promise library from scratch?
DSA ยท 179 views ยท promises, polyfill, async
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question