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 ยท 950 views ยท filter
What is hoisting in JavaScript?
Phone Screen ยท 944 views ยท hoisting, scope, variables
What are static methods and properties?
Frontend ยท 927 views ยท classes, static
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
What are `let`, `const`, and `var`? What are their differences?
Phone Screen ยท 614 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 ยท 973 views ยท object-create
How does the 'this' keyword work?
Frontend ยท 690 views ยท this
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
What is the difference between arrow and regular functions?
Frontend ยท 637 views ยท arrow-functions
How do you deep clone an object in JavaScript?
Frontend ยท 586 views ยท copy
What is the purpose of the `bind`, `call`, and `apply` methods?
Frontend ยท 573 views ยท this, functions, context
What are the logical assignment operators?
Frontend ยท 520 views ยท logical-assignment
Hard
9 questionsWhat 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
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
How do iterators and the iterable protocol work?
Frontend ยท 433 views ยท iterators
What does the 'new' keyword do?
Frontend ยท 311 views ยท new
How would you implement Symbol.asyncIterator on a class to transparently page through a paginated API with for await...of?
DSA ยท 266 views ยท iterators, tricky, real-world
What problem do WeakRef and FinalizationRegistry solve, and why should they be used carefully?
DSA ยท 126 views ยท weakref, finalizationregistry, garbage-collection
Seen a JavaScript question that is not here? Add it and help the next candidate.
Share a question