Sector file // javascript

JAVASCRIPTDECODED.

Closures, async & the core

165 Questions104.3k 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 ยท 939 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 ยท 804 views

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

DSA ยท 748 views

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

Frontend ยท 643 views

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

DSA ยท 611 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 ยท 329 views

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

DSA ยท 229 views

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

Share a question