Sector file // javascript
JAVASCRIPTDECODED.
Closures, async & the core
Easy
13 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 '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 hoisting in JavaScript?
Phone Screen ยท 944 views ยท hoisting, scope, variables
What are static methods and properties?
Frontend ยท 927 views ยท classes, static
Describe the concept of 'scope' in JavaScript.
Phone Screen ยท 795 views ยท scope, variables, functions
Medium
12 questionsHow 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
What does Object.create do?
Frontend ยท 973 views ยท object-create
What is an IIFE?
Frontend ยท 882 views ยท iife
What is event delegation?
Frontend ยท 814 views ยท event-delegation
How does the 'this' keyword work?
Frontend ยท 690 views ยท this
How would you remove an item from an array immutably using toSpliced(), and how does it compare to splice()?
Frontend ยท 678 views ยท es2023, tricky, real-world
What is the difference between arrow and regular functions?
Frontend ยท 637 views ยท arrow-functions
Hard
13 questionsHow does `Atomics.waitAsync()` enable non-blocking waits on SharedArrayBuffer?
DSA ยท 1.1k views ยท atomics, sharedarraybuffer, concurrency
What does yield* do in a generator?
Frontend ยท 1.0k views ยท generators
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 is the Reflect API?
Frontend ยท 884 views ยท reflect
What is ShadowRealm and how does it provide true JavaScript sandboxing?
Frontend ยท 640 views ยท shadowrealm, sandbox, isolation
How do you implement a custom Promise.any polyfill?
DSA ยท 541 views ยท promises, polyfill, async
How would you write a deep-clone function that correctly handles a self-referencing (circular) object without infinite recursion?
DSA ยท 529 views ยท utility, tricky, real-world
What is the temporal dead zone?
Frontend ยท 465 views ยท temporal-dead-zone
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question