Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
12 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 Object.groupBy() work in ES2024 and when should you use it over reduce?
Frontend ยท 1.1k views ยท es2024, array, object-groupby
What does Array.filter do?
Frontend ยท 950 views ยท filter
What are optional chaining and nullish coalescing?
Frontend ยท 872 views ยท optional-chaining
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 null and undefined?
Frontend ยท 584 views ยท null, undefined
What is short-circuit evaluation?
Frontend ยท 505 views ยท short-circuit
What are the quirks of the typeof operator?
Frontend ยท 465 views ยท typeof
Medium
8 questionsHow do you convert a callback-based function to a Promise?
Frontend ยท 1.1k views ยท promisify
What does Object.create do?
Frontend ยท 973 views ยท object-create
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
Explain prototypal inheritance.
Frontend ยท 557 views ยท prototypes, inheritance, objects
What are the logical assignment operators?
Frontend ยท 520 views ยท logical-assignment
What is the prototype chain?
Frontend ยท 491 views ยท prototype
When would you reach for Map.groupBy() instead of Object.groupBy(), and what problem does it solve with non-string keys?
Frontend ยท 246 views ยท es2024, tricky, real-world
Hard
2 questionsHow 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 would you implement Symbol.asyncIterator on a class to transparently page through a paginated API with for await...of?
DSA ยท 266 views ยท iterators, tricky, real-world
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question