Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
12 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
What does Array.filter do?
Frontend ยท 950 views ยท filter
What is hoisting in JavaScript?
Phone Screen ยท 944 views ยท hoisting, scope, variables
Describe the concept of 'scope' in JavaScript.
Phone Screen ยท 795 views ยท scope, variables, functions
What is the difference between preventDefault and stopPropagation?
Frontend ยท 666 views ยท events
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
Medium
34 questionsWhat is the difference between Object.freeze, seal, and preventExtensions?
Frontend ยท 1.2k views ยท object-seal-freeze
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 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
Explain event delegation.
Frontend ยท 899 views ยท events, dom, performance
What is an IIFE?
Frontend ยท 882 views ยท iife
Hard
18 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
Implement an async task queue with a concurrency limit.
System Design ยท 1.1k views ยท promises, concurrency, queue
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
What are Symbols and what are they used for?
Frontend ยท 874 views ยท symbol
What is ShadowRealm and how does it provide true JavaScript sandboxing?
Frontend ยท 640 views ยท shadowrealm, sandbox, isolation
What are tagged template literals?
Frontend ยท 588 views ยท tagged-templates
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question