Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
15 questionsWhat are template literals?
Frontend ยท 1.2k views ยท template-literals
How does Array.prototype.with() let you replace one array element immutably, and where would that pattern actually help?
Phone Screen ยท 1.1k views ยท es2023, tricky, real-world
How does 'use strict' change what `this` refers to inside a regular function called without a receiver, compared to non-strict mode?
Phone Screen ยท 1.1k views ยท syntax, tricky, real-world
How does Array.prototype.toSorted() differ from .sort(), and why does that matter when updating state immutably?
Phone Screen ยท 1.1k views ยท es2023, tricky, real-world
What does Array.filter do?
Frontend ยท 950 views ยท filter
What are static methods and properties?
Frontend ยท 927 views ยท classes, static
What does Object.hasOwn() do differently from Object.prototype.hasOwnProperty.call(), and why is it the recommended modern replacement?
Phone Screen ยท 772 views ยท object, hasownproperty, hasown
What is short-circuit evaluation?
Frontend ยท 505 views ยท short-circuit
Medium
21 questionsHow do you implement infinite currying in JavaScript?
Phone Screen ยท 1.2k views ยท currying, closures, functional
Set methods deep-dive: performance and mutability trade-offs vs manual loops?
DSA ยท 1.2k views ยท set, performance, es2024
When should you use Map and Set over objects and arrays?
Frontend ยท 1.1k views ยท map, set
How does WeakMap allow garbage collection of keys?
Frontend ยท 1.1k views ยท weakmap, garbage-collection, memory
How would you write a Proxy 'set' trap that validates a value before allowing an assignment, and what happens if you return false?
Frontend ยท 1.1k views ยท proxy, tricky, real-world
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
Hard
19 questionsWhat is CORS?
Frontend ยท 1.1k views ยท cors
Why can pushing a single non-numeric value into a large numeric array tank its performance in V8, and how would you avoid it?
System Design ยท 1.1k views ยท v8, tricky, real-world
What does yield* do in a generator?
Frontend ยท 1.0k views ยท generators
How would you make a custom class iterable with for...of by implementing Symbol.iterator as a generator method?
DSA ยท 936 views ยท iterators, tricky, real-world
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 does ArrayBuffer transfer and detach work with `transfer()` vs `transferToFixedLength()`?
DSA ยท 608 views ยท arraybuffer, transfer, memory
Temporal in practice: how do you correctly handle time zones, DST and calendar arithmetic?
Frontend ยท 593 views ยท temporal, timezone, dst
How do you implement a custom Promise.any polyfill?
DSA ยท 541 views ยท promises, polyfill, async
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question