Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
8 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 for...of and for...in?
Frontend ยท 986 views ยท for-of, for-in
What is the difference between includes and indexOf?
Frontend ยท 807 views ยท array-methods, includes
How would you use the Page Visibility API to pause a setInterval-based poller when a user switches to a different browser tab?
Phone Screen ยท 722 views ยท perf-api, tricky, real-world
How does instanceof work?
Frontend ยท 256 views ยท instanceof
What is `Error.isError()` and why is `instanceof Error` unreliable across realms?
Frontend ยท 241 views ยท error, es2025, realm
What is the difference between map and forEach?
Frontend ยท 213 views ยท array-methods
Medium
18 questionsHow do you implement infinite currying in JavaScript?
Phone Screen ยท 1.2k views ยท currying, closures, functional
How do you convert a callback-based function to a Promise?
Frontend ยท 1.1k views ยท promisify
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
Implement a robust Event Emitter class.
DSA ยท 1.1k views ยท design-patterns, pubsub, event-emitter
Explain event delegation.
Frontend ยท 899 views ยท events, dom, performance
How does Array.reduce work?
Frontend ยท 822 views ยท reduce
How do you handle asynchronous operations in JavaScript?
Frontend ยท 784 views ยท async, promises, async/await
Hard
11 questionsHow 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 implement an async generator function to stream paginated API results, and how does a consumer use it with for await...of?
DSA ยท 802 views ยท async-generator, generators, async-iteration
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 do Stage 3 JavaScript Decorators work โ class, method and field decorators?
Frontend ยท 686 views ยท decorators, es2023, metaprogramming
What are tagged template literals?
Frontend ยท 588 views ยท tagged-templates
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 do you combine Stage 3 decorators with `using` for auto-disposable resources?
Frontend ยท 457 views ยท decorators, using, resource
How would you implement a throttle function with configurable leading- and trailing-edge execution?
Frontend ยท 332 views ยท utility, tricky, real-world
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question