Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
165 Questions103.9k Views7.0k Upvotes
41 easy77 med47 hard
Easy
1 questionMedium
4 questionsWhat does setTimeout with 0 delay actually do?
Frontend ยท 566 views ยท settimeout
Views:566Likes:12
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
Views:499Likes:32
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
Views:440Likes:58
What does `Promise.try()` do and why is it better than `Promise.resolve().then(fn)`?
Frontend ยท 317 views ยท promises, es2024, error-handling
Views:317Likes:5
Hard
5 questionsExplain the event loop, call stack, and task queues.
Frontend ยท 1.2k views ยท event-loop
Views:1.2kLikes:48
In what order do console.log, setTimeout, and Promise.then run?
Frontend ยท 775 views ยท event-loop, order
Views:775Likes:11
What is the event loop?
Frontend ยท 473 views ยท event loop, concurrency, single-thread
Views:473Likes:63
What is the difference between microtasks and macrotasks?
Frontend ยท 417 views ยท event-loop, microtask
Views:417Likes:71
How do you implement a simple Promise library from scratch?
DSA ยท 179 views ยท promises, polyfill, async
Views:179Likes:22
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question