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 '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 does Array.filter do?
Frontend ยท 952 views ยท filter
What is hoisting in JavaScript?
Phone Screen ยท 947 views ยท hoisting, scope, variables
What are static methods and properties?
Frontend ยท 930 views ยท classes, static
What are optional chaining and nullish coalescing?
Frontend ยท 874 views ยท optional-chaining
Describe the concept of 'scope' in JavaScript.
Phone Screen ยท 798 views ยท scope, variables, functions
What are `let`, `const`, and `var`? What are their differences?
Phone Screen ยท 617 views ยท variables, scope, es6
Medium
15 questionsHow do you convert a callback-based function to a Promise?
Frontend ยท 1.1k views ยท promisify
What does Object.create do?
Frontend ยท 977 views ยท object-create
How does the 'this' keyword work?
Frontend ยท 692 views ยท this
How would you use ResizeObserver to react to an element's size changing, without polling getBoundingClientRect() on every frame?
Frontend ยท 647 views ยท observers, tricky, real-world
What is the difference between arrow and regular functions?
Frontend ยท 638 views ยท arrow-functions
How do you deep clone an object in JavaScript?
Frontend ยท 587 views ยท copy
What is the purpose of the `bind`, `call`, and `apply` methods?
Frontend ยท 575 views ยท this, functions, context
What are the logical assignment operators?
Frontend ยท 524 views ยท logical-assignment
Hard
9 questionsWhat is ShadowRealm and how does it provide true JavaScript sandboxing?
Frontend ยท 643 views ยท shadowrealm, sandbox, isolation
How does ArrayBuffer transfer and detach work with `transfer()` vs `transferToFixedLength()`?
DSA ยท 611 views ยท arraybuffer, transfer, memory
How would you write a deep-clone function that correctly handles a self-referencing (circular) object without infinite recursion?
DSA ยท 531 views ยท utility, tricky, real-world
What is the temporal dead zone?
Frontend ยท 468 views ยท temporal-dead-zone
How do iterators and the iterable protocol work?
Frontend ยท 435 views ยท iterators
What does the 'new' keyword do?
Frontend ยท 313 views ยท new
How would you implement Symbol.asyncIterator on a class to transparently page through a paginated API with for await...of?
DSA ยท 267 views ยท iterators, tricky, real-world
What problem do WeakRef and FinalizationRegistry solve, and why should they be used carefully?
DSA ยท 127 views ยท weakref, finalizationregistry, garbage-collection
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question