Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
17 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 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
What is the difference between for...of and for...in?
Frontend ยท 986 views ยท for-of, for-in
What is hoisting in JavaScript?
Phone Screen ยท 944 views ยท hoisting, scope, variables
What are optional chaining and nullish coalescing?
Frontend ยท 872 views ยท optional-chaining
Describe the concept of 'scope' in JavaScript.
Phone Screen ยท 795 views ยท scope, variables, functions
Medium
30 questionsSet 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
How does the fetch API work?
Frontend ยท 1.1k views ยท fetch
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
Implement a robust Event Emitter class.
DSA ยท 1.1k views ยท design-patterns, pubsub, event-emitter
What does Object.create do?
Frontend ยท 973 views ยท object-create
What is a Promise and what are its states?
Frontend ยท 922 views ยท promises
Hard
19 questionsWhat 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
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
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 do Stage 3 JavaScript Decorators work โ class, method and field decorators?
Frontend ยท 686 views ยท decorators, es2023, metaprogramming
What is ShadowRealm and how does it provide true JavaScript sandboxing?
Frontend ยท 640 views ยท shadowrealm, sandbox, isolation
How does ArrayBuffer transfer and detach work with `transfer()` vs `transferToFixedLength()`?
DSA ยท 608 views ยท arraybuffer, transfer, memory
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question