Sector file // javascript

JAVASCRIPTDECODED.

Closures, async & the core

165 Questions103.9k Views7.0k Upvotes
41 easy77 med47 hard

Easy

2 questions

Medium

5 questions

Hard

11 questions

How does SharedArrayBuffer let two Web Workers share memory directly, and what race conditions do you need to guard against?

System Design ยท 1.0k views

How would you make a custom class iterable with for...of by implementing Symbol.iterator as a generator method?

DSA ยท 936 views

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 ยท 802 views

How would you use the new Iterator helper methods (.map, .filter, .take, .drop) to process a large or infinite iterator lazily?

DSA ยท 746 views

What is ShadowRealm and how does it provide true JavaScript sandboxing?

Frontend ยท 640 views

How does ArrayBuffer transfer and detach work with `transfer()` vs `transferToFixedLength()`?

DSA ยท 608 views

How would you transfer a large ArrayBuffer between a worker and the main thread without copying it, using postMessage's transfer list?

System Design ยท 324 views

How does V8 Array copy-on-write optimization work for `toSorted`/`toReversed`/`toSpliced`/`with`?

DSA ยท 224 views

Seen a JavaScript question that is not here? Add it and help the next candidate.

Share a question