Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
7 questionsWhat is the difference between var, let, and const?
Frontend ยท 1.2k views ยท var, let, const
What is the difference between for...of and for...in?
Frontend ยท 986 views ยท for-of, for-in
Describe the concept of 'scope' in JavaScript.
Phone Screen ยท 795 views ยท scope, variables, functions
What are `let`, `const`, and `var`? What are their differences?
Phone Screen ยท 614 views ยท variables, scope, es6
How do the new Set methods `union()`, `intersection()`, `difference()` and `symmetricDifference()` work?
Frontend ยท 435 views ยท set, es2024, collection
What is the difference between synchronous and asynchronous code?
Frontend ยท 420 views ยท sync-async
What is the difference between map and forEach?
Frontend ยท 213 views ยท array-methods
Medium
12 questionsSet methods deep-dive: performance and mutability trade-offs vs manual loops?
DSA ยท 1.2k views ยท set, performance, es2024
Implement a robust Event Emitter class.
DSA ยท 1.1k views ยท design-patterns, pubsub, event-emitter
How do you implement a deepFreeze function recursively?
Frontend ยท 935 views ยท objects, recursion, immutability
What is an IIFE?
Frontend ยท 882 views ยท iife
How do you handle asynchronous operations in JavaScript?
Frontend ยท 784 views ยท async, promises, async/await
How would you use ResizeObserver to react to an element's size changing, without polling getBoundingClientRect() on every frame?
Frontend ยท 645 views ยท observers, tricky, real-world
Explain prototypal inheritance.
Frontend ยท 557 views ยท prototypes, inheritance, objects
What are closures in JavaScript?
Frontend ยท 546 views ยท closures, scope, functions
Hard
15 questionsExplain the event loop, call stack, and task queues.
Frontend ยท 1.2k views ยท event-loop
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
What are async iterators and for await...of?
Frontend ยท 1.0k views ยท async-iterators
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
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
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question