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
How does `try...catch` work in JavaScript?
Frontend ยท 60 views ยท error handling, try/catch, exceptions
Medium
5 questionsHow would you combine multiple AbortSignals or add a timeout to a fetch request using AbortSignal.any() and AbortSignal.timeout()?
Frontend ยท 605 views ยท abortsignal, fetch, timeout
What does setTimeout with 0 delay actually do?
Frontend ยท 566 views ยท settimeout
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 implement a debounce utility that also exposes a .cancel() method to cancel a pending call?
Frontend ยท 397 views ยท utility, tricky, real-world
What is `scheduler.yield()` and how does it prevent main-thread blocking?
Frontend ยท 142 views ยท scheduler, performance, event-loop
Hard
7 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
What is debouncing and throttling?
Frontend ยท 113 views ยท performance, optimization, debouncing
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question