Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
17 questionsWhat 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 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 are static methods and properties?
Frontend ยท 927 views ยท classes, static
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
What is the difference between null and undefined?
Frontend ยท 584 views ยท null, undefined
Medium
31 questionsSet methods deep-dive: performance and mutability trade-offs vs manual loops?
DSA ยท 1.2k views ยท set, performance, es2024
When should you use Map and Set over objects and arrays?
Frontend ยท 1.1k views ยท map, set
How would you write a Proxy 'set' trap that validates a value before allowing an assignment, and what happens if you return false?
Frontend ยท 1.1k views ยท proxy, tricky, real-world
What does Object.create do?
Frontend ยท 973 views ยท object-create
What is a Promise and what are its states?
Frontend ยท 922 views ยท promises
Explain event delegation.
Frontend ยท 899 views ยท events, dom, performance
What is the difference between call, apply, and bind?
Frontend ยท 801 views ยท call-apply-bind
How do you implement a custom Promise.all polyfill?
DSA ยท 724 views ยท promises, polyfill, async
Hard
25 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 is the difference between Promise.all, allSettled, race, and any?
Frontend ยท 1.1k views ยท promises, combinators
How does `Atomics.waitAsync()` enable non-blocking waits on SharedArrayBuffer?
DSA ยท 1.1k views ยท atomics, sharedarraybuffer, concurrency
Implement an async task queue with a concurrency limit.
System Design ยท 1.1k views ยท promises, concurrency, queue
What does yield* do in a generator?
Frontend ยท 1.0k views ยท generators
How does SharedArrayBuffer let two Web Workers share memory directly, and what race conditions do you need to guard against?
System Design ยท 1.0k views ยท workers, tricky, real-world
What is the Reflect API?
Frontend ยท 884 views ยท reflect
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question