Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
165 Questions103.9k Views7.0k Upvotes
41 easy77 med47 hard
Easy
3 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
Views:1.2kLikes:53
How does Object.groupBy() work in ES2024 and when should you use it over reduce?
Frontend ยท 1.1k views ยท es2024, array, object-groupby
Views:1.1kLikes:39
How do the new Set methods `union()`, `intersection()`, `difference()` and `symmetricDifference()` work?
Frontend ยท 435 views ยท set, es2024, collection
Views:435Likes:71
Medium
8 questionsSet methods deep-dive: performance and mutability trade-offs vs manual loops?
DSA ยท 1.2k views ยท set, performance, es2024
Views:1.2kLikes:35
What is the difference between `Object.groupBy()` and `Map.groupBy()` โ keys, prototypes and ordering?
Frontend ยท 677 views ยท es2024, map-groupby, object-groupby
Views:677Likes:37
How do Import Attributes (`with { type: "json" }`) work and why did they replace import assertions?
Frontend ยท 656 views ยท es2024, modules, json
Views:656Likes:55
What does `using` / `await using` do for Explicit Resource Management (ES2024)?
Frontend ยท 420 views ยท es2024, using, resource
Views:420Likes:27
What is `Array.fromAsync()` and how does it handle async iterables differently from `Array.from()`?
Frontend ยท 341 views ยท es2024, array, async-iterable
Views:341Likes:58
What does `Promise.try()` do and why is it better than `Promise.resolve().then(fn)`?
Frontend ยท 317 views ยท promises, es2024, error-handling
Views:317Likes:5
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
Views:246Likes:40
What does Promise.withResolvers() solve and how does it replace the deferred anti-pattern?
Frontend ยท 215 views ยท promises, es2024, async
Views:215Likes:36
Hard
2 questionsSeen a JavaScript question that is not here? Add it and help the next candidate.
Share a question