Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
13 questionsHow would you use Object.groupBy() to group an array of orders by status, and how does it compare to a manual reduce()?
Frontend ยท 1.2k views ยท es2024, tricky, real-world
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 Array.prototype.toSorted() differ from .sort(), and why does that matter when updating state immutably?
Phone Screen ยท 1.1k views ยท es2023, tricky, real-world
How 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 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 the difference between Object.is, ==, and ===?
Phone Screen ยท 522 views ยท equality, object-is, coercion
How do the new Set methods `union()`, `intersection()`, `difference()` and `symmetricDifference()` work?
Frontend ยท 435 views ยท set, es2024, collection
Medium
9 questionsSet 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
What does Object.create do?
Frontend ยท 973 views ยท object-create
How would you remove an item from an array immutably using toSpliced(), and how does it compare to splice()?
Frontend ยท 678 views ยท es2023, tricky, real-world
What is the difference between `Object.groupBy()` and `Map.groupBy()` โ keys, prototypes and ordering?
Frontend ยท 677 views ยท es2024, map-groupby, object-groupby
What is the difference between arrow and regular functions?
Frontend ยท 637 views ยท arrow-functions
Explain prototypal inheritance.
Frontend ยท 557 views ยท prototypes, inheritance, objects
What is the prototype chain?
Frontend ยท 491 views ยท prototype
Hard
6 questionsWhat is the Reflect API?
Frontend ยท 884 views ยท reflect
Explain how prototypal inheritance differs from classical inheritance.
Frontend ยท 748 views ยท prototypes, inheritance, oop
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
What does the 'new' keyword do?
Frontend ยท 311 views ยท new
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
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question