Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
20 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
What is the difference between var, let, and const?
Frontend ยท 1.2k views ยท var, let, const
How does 'use strict' change what `this` refers to inside a regular function called without a receiver, compared to non-strict mode?
Phone Screen ยท 1.1k views ยท syntax, 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 are `let`, `const`, and `var`? What are their differences?
Phone Screen ยท 614 views ยท variables, scope, es6
Medium
46 questionsDebounce vs throttle โ implement debounce
Frontend ยท Netflix ยท 3.7k views ยท javascript, performance
How do you implement infinite currying in JavaScript?
Phone Screen ยท 1.2k views ยท currying, closures, functional
What is the difference between Object.freeze, seal, and preventExtensions?
Frontend ยท 1.2k views ยท object-seal-freeze
Set methods deep-dive: performance and mutability trade-offs vs manual loops?
DSA ยท 1.2k views ยท set, performance, es2024
Explain 'this' keyword in JavaScript.
Frontend ยท 1.1k views ยท this, context, functions
How does the fetch API work?
Frontend ยท 1.1k views ยท fetch
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
Hard
22 questionsWhy can pushing a single non-numeric value into a large numeric array tank its performance in V8, and how would you avoid it?
System Design ยท 1.1k views ยท v8, tricky, real-world
What are async iterators and for await...of?
Frontend ยท 1.0k views ยท async-iterators
How 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
What is the Reflect API?
Frontend ยท 884 views ยท reflect
What are Symbols and what are they used for?
Frontend ยท 874 views ยท symbol
What is a generator function?
Frontend ยท 806 views ยท generators
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
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question