Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
5 questionsHow 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 Object.is, ==, and ===?
Phone Screen ยท 522 views ยท equality, object-is, coercion
What is `Error.isError()` and why is `instanceof Error` unreliable across realms?
Frontend ยท 241 views ยท error, es2025, realm
What is JSON and why is it commonly used?
Phone Screen ยท 167 views ยท json, data format, api
Medium
15 questionsWhat is the difference between Object.freeze, seal, and preventExtensions?
Frontend ยท 1.2k views ยท object-seal-freeze
Explain 'this' keyword in JavaScript.
Frontend ยท 1.1k views ยท this, context, functions
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 do you implement a deepFreeze function recursively?
Frontend ยท 935 views ยท objects, recursion, immutability
How do you implement a custom Promise.all polyfill?
DSA ยท 724 views ยท promises, polyfill, async
What is the difference between `Object.groupBy()` and `Map.groupBy()` โ keys, prototypes and ordering?
Frontend ยท 677 views ยท es2024, map-groupby, object-groupby
What are the basics of regular expressions in JavaScript?
Frontend ยท 604 views ยท regexp
Hard
9 questionsExplain 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
What is ShadowRealm and how does it provide true JavaScript sandboxing?
Frontend ยท 640 views ยท shadowrealm, sandbox, isolation
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 does the Temporal API fix JavaScript Date โ Instant, PlainDate and ZonedDateTime?
Frontend ยท 437 views ยท temporal, es2024, date
How do iterators and the iterable protocol work?
Frontend ยท 433 views ยท iterators
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
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question