Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
41 questionsStart hereWhat are template literals?
Frontend · 1.2k views · template-literals
How 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 Array.prototype.with() let you replace one array element immutably, and where would that pattern actually help?
Phone Screen · 1.1k views · es2023, tricky, real-world
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
Medium
77 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
How would you use the BroadcastChannel API to sync application state across multiple open browser tabs?
Frontend · 1.1k views · messaging, tricky, real-world
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
How does the fetch API work?
Frontend · 1.1k views · fetch
Hard
47 questionsExplain the event loop, call stack, and task queues.
Frontend · 1.2k views · event-loop
What does the RegExp `v` flag (Unicode Sets) add over the `u` flag?
Frontend · 1.2k views · regexp, unicode, es2024
What are function composition and pipe?
Frontend · 1.1k views · composition
What is the difference between Promise.all, allSettled, race, and any?
Frontend · 1.1k views · promises, combinators
What is CORS?
Frontend · 1.1k views · cors
How does `Atomics.waitAsync()` enable non-blocking waits on SharedArrayBuffer?
DSA · 1.1k views · atomics, sharedarraybuffer, concurrency
Why 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
Implement an async task queue with a concurrency limit.
System Design · 1.1k views · promises, concurrency, queue
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question