Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
165 Questions103.9k Views7.0k Upvotes
41 easy77 med47 hard
Medium
4 questionsHow do you handle asynchronous operations in JavaScript?
Frontend ยท 784 views ยท async, promises, async/await
Views:784Likes: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 ยท 577 views ยท utility, tricky, real-world
Views:577Likes:64
What 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
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 ยท 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