Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
165 Questions104.3k Views7.0k Upvotes
41 easy77 med47 hard
Medium
4 questionsHow do you handle asynchronous operations in JavaScript?
Frontend ยท 786 views ยท async, promises, async/await
Views:786Likes:78
Why is navigator.sendBeacon() the right tool for sending analytics data when a user closes a tab, instead of a normal fetch call?
Frontend ยท 579 views ยท utility, tricky, real-world
Views:579Likes:64
What does setTimeout with 0 delay actually do?
Frontend ยท 569 views ยท settimeout
Views:569Likes:12
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
Views:502Likes:32
Hard
6 questionsExplain the event loop, call stack, and task queues.
Frontend ยท 1.2k views ยท event-loop
Views:1.2kLikes:48
Implement an async task queue with a concurrency limit.
System Design ยท 1.1k views ยท promises, concurrency, queue
Views:1.1kLikes:44
In what order do console.log, setTimeout, and Promise.then run?
Frontend ยท 778 views ยท event-loop, order
Views:778Likes:11
What is the event loop?
Frontend ยท 474 views ยท event loop, concurrency, single-thread
Views:474Likes:63
What is the difference between microtasks and macrotasks?
Frontend ยท 420 views ยท event-loop, microtask
Views:420Likes:71
How do you implement a simple Promise library from scratch?
DSA ยท 182 views ยท promises, polyfill, async
Views:182Likes:22
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question