Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
2 questionsMedium
5 questionsWhat is memoization?
Frontend ยท 1.1k views ยท memoization
How does WeakMap allow garbage collection of keys?
Frontend ยท 1.1k views ยท weakmap, garbage-collection, memory
Explain event delegation.
Frontend ยท 902 views ยท events, dom, performance
Why must you pass the same function reference to removeEventListener?
Frontend ยท 431 views ยท events
Why would you choose a WeakSet over a Set to track a group of DOM elements, and what happens to its entries once those elements are removed?
Frontend ยท 356 views ยท weakset, tricky, real-world
Hard
11 questionsHow does SharedArrayBuffer let two Web Workers share memory directly, and what race conditions do you need to guard against?
System Design ยท 1.0k views ยท workers, tricky, real-world
How would you make a custom class iterable with for...of by implementing Symbol.iterator as a generator method?
DSA ยท 939 views ยท iterators, tricky, real-world
How would you implement an async generator function to stream paginated API results, and how does a consumer use it with for await...of?
DSA ยท 804 views ยท async-generator, generators, async-iteration
How would you use the new Iterator helper methods (.map, .filter, .take, .drop) to process a large or infinite iterator lazily?
DSA ยท 748 views ยท iterators, es2025, lazy-evaluation
What is ShadowRealm and how does it provide true JavaScript sandboxing?
Frontend ยท 643 views ยท shadowrealm, sandbox, isolation
How does ArrayBuffer transfer and detach work with `transfer()` vs `transferToFixedLength()`?
DSA ยท 611 views ยท arraybuffer, transfer, memory
How would you transfer a large ArrayBuffer between a worker and the main thread without copying it, using postMessage's transfer list?
System Design ยท 329 views ยท workers, tricky, real-world
How does V8 Array copy-on-write optimization work for `toSorted`/`toReversed`/`toSpliced`/`with`?
DSA ยท 229 views ยท v8, array, performance
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question