Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
7 questionsHow does Object.groupBy() work in ES2024 and when should you use it over reduce?
Frontend ยท 1.1k views ยท es2024, array, object-groupby
What is the difference between for...of and for...in?
Frontend ยท 986 views ยท for-of, for-in
What does Array.filter do?
Frontend ยท 950 views ยท filter
How do the new Set methods `union()`, `intersection()`, `difference()` and `symmetricDifference()` work?
Frontend ยท 435 views ยท set, es2024, collection
What is the difference between map and forEach?
Frontend ยท 213 views ยท array-methods
What do Object.keys, values, and entries return?
Frontend ยท 177 views ยท object-methods
What is JSON and why is it commonly used?
Phone Screen ยท 167 views ยท json, data format, api
Medium
14 questionsWhen should you use Map and Set over objects and arrays?
Frontend ยท 1.1k views ยท map, set
What is memoization?
Frontend ยท 1.1k views ยท memoization
How does WeakMap allow garbage collection of keys?
Frontend ยท 1.1k views ยท weakmap, garbage-collection, memory
Implement a robust Event Emitter class.
DSA ยท 1.1k views ยท design-patterns, pubsub, event-emitter
What does Object.create do?
Frontend ยท 973 views ยท object-create
How does Array.reduce work?
Frontend ยท 822 views ยท reduce
What do flat and flatMap do?
Frontend ยท 692 views ยท flat, flatmap
What is the difference between `Object.groupBy()` and `Map.groupBy()` โ keys, prototypes and ordering?
Frontend ยท 677 views ยท es2024, map-groupby, object-groupby
Hard
8 questionsImplement an async task queue with a concurrency limit.
System Design ยท 1.1k views ยท promises, concurrency, queue
How would you use the new Iterator helper methods (.map, .filter, .take, .drop) to process a large or infinite iterator lazily?
DSA ยท 746 views ยท iterators, es2025, lazy-evaluation
How would you write a deep-clone function that correctly handles a self-referencing (circular) object without infinite recursion?
DSA ยท 529 views ยท utility, tricky, real-world
How do iterators and the iterable protocol work?
Frontend ยท 433 views ยท iterators
How does V8 Array copy-on-write optimization work for `toSorted`/`toReversed`/`toSpliced`/`with`?
DSA ยท 224 views ยท v8, array, performance
What are WeakMap and WeakSet?
Frontend ยท 211 views ยท weakmap
How would you use Symbol.hasInstance and Symbol.toPrimitive to customize instanceof checks and type coercion for a class?
DSA ยท 172 views ยท symbol, well-known-symbols, coercion
What is a Proxy in JavaScript?
Frontend ยท 42 views ยท proxy
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question