Tags

Quiz

Quiz

0 lessons
133 question banks
2 community items

quiz

Question Banks

133 items
Question Bank

Amortized Analysis Quick Quiz

Short drills on amortized cost for dynamic arrays, hash table rehashing, and the aggregate method. Good for solidifying the gap between worst-case and average-case-per-operation.

JavaScript
amortized-analysis
big-o
quiz
fundamentals

813

14

Easy
Question Bank

Array Fundamentals Quiz

Quick prompts on indexing, in-place mutation, and the cost of common array operations. Good for warming up before sliding-window or two-pointer drills.

JavaScript
arrays
data-structures
quiz
fundamentals

979

16

Easy
Question Bank

Hash Table Basics Quiz

Short prompts on hash table lookup cost, collision handling, and when to reach for a Set vs a Map. Builds the mental model before harder hashing problems.

JavaScript
hash-table
data-structures
quiz
fundamentals

483

13

Easy
Question Bank

Linked List Basics Quiz

Short prompts on singly vs doubly linked lists, traversal, length, and the everyday operations that come up before cycle detection or in-place reversal.

JavaScript
linked-list
data-structures
quiz
fundamentals

874

13

Easy
Question Bank

Binary Tree Basics Quiz

Short prompts on node anatomy, depth vs height, and leaf counting. Foundation drills before tackling traversal, BSTs, or balanced tree problems.

JavaScript
binary-tree
data-structures
quiz
fundamentals

1.1k

9

Easy
Question Bank

String Basics Quiz

Three short prompts on JavaScript string immutability, slicing, and char codes. Good warm-up before tackling sliding-window or palindrome problems.

JavaScript
strings
data-structures
quiz
fundamentals

286

2

Easy
Question Bank

Two-Pointer Warm-Up

Four short prompts covering pair sums, in-place dedupe, and palindrome checks with two pointers. Great preparation before sliding-window drills.

JavaScript
two-pointers
algorithms
quiz
fundamentals

946

31

Easy
Question Bank

Big-O Complexity Quiz

Four short prompts on identifying time complexity from JavaScript code: nested loops, halving, recursion, and a bug-by-complexity hunt.

JavaScript
big-o
asymptotic-analysis
quiz
fundamentals

1.1k

11

Easy
Question Bank

Space Complexity Quiz

Three short prompts on space accounting: stack vs heap usage, recursion depth, and an in-place vs out-of-place comparison.

JavaScript
space-complexity
asymptotic-analysis
quiz
fundamentals

392

6

Easy
Question Bank

Graph Representation Quiz

Short drills on adjacency list vs adjacency matrix, edge-weight storage, and the memory trade-offs between the two formats.

JavaScript
graph-representation
graphs
quiz
fundamentals

188

3

Easy
Question Bank

BFS vs DFS Fundamentals

Pin down the queue-vs-stack mechanics behind BFS and DFS, plus when level-by-level versus deep-first traversal is the right tool.

JavaScript
bfs
dfs
graph-traversal-patterns
quiz

924

22

Easy
Question Bank

Grid Search Patterns

Implement and trace classic grid problems: counting islands, flood fill, and multi-source distance maps. Code stems are mostly Python.

Python
islands
bfs
algorithms
quiz

900

24

Medium
Question Bank

Topological Sort Essentials

Kahn's algorithm, DFS-based ordering, and using topo sort to detect cycles in directed graphs. Code stems are mostly Python.

Python
topological-sort
graphs
algorithms
quiz

406

12

Medium
Question Bank

Union-Find Warm-Up

Disjoint Set Union with path compression and union by rank. Drills cover find, union, connected-component counts, and Kruskal usage.

JavaScript
union-find
union-by-rank
data-structures
quiz

1k

13

Medium
Question Bank

Sorting Algorithm Speed Round

Quick drills on quicksort, mergesort, heapsort, and counting sort: best / average / worst times, stability, and when each one wins.

JavaScript
sorting
merge-sort
quiz
fundamentals

279

8

Easy
Question Bank

Binary Search Fundamentals

Lower bound, upper bound, and the off-by-one corners of classic binary search. Code stems are Python.

Python
binary-search
binary-search-templates
algorithms
quiz

1.2k

29

Easy
Question Bank

Quickselect and Kth Element

Partition-based selection: kth smallest in expected `O(n)`, worst case `O(n^2)`, plus when to prefer a heap-based approach.

Python
quickselect
partitioning
algorithms
quiz

334

4

Medium
Question Bank

Dynamic Programming Warm-Up

Memoization, tabulation, and writing transitions for classic 1D DP. Code stems are Python.

Python
dynamic-programming
memoization
fundamentals
quiz

426

12

Easy
Question Bank

Greedy Algorithms Warm-Up

Identify when a greedy choice is correct and when it fails. Drills cover activity selection, coin change with canonical denominations, and Huffman intuition.

Python
greedy
algorithms
quiz
fundamentals

728

13

Easy
Question Bank

Knapsack Family Quiz

0/1, unbounded, and bounded knapsack: state definitions, loop directions, and which variant fits a given problem.

Python
knapsack
dynamic-programming
algorithms
quiz

189

3

Medium
Question Bank

DP on Strings Quiz

Edit distance, longest common subsequence, and palindrome DP. Drills focus on state definitions and transitions.

Python
dynamic-programming
edit-distance
algorithms
quiz

1k

6

Medium
Question Bank

DP on Grids Quiz

Path counts, minimum path sum, and obstacle handling on rectangular grids. Code stems are Python.

Python
grid-dp
dynamic-programming
algorithms
quiz

660

14

Medium
Question Bank

Number Theory Warm-Up

Short drills on GCD, LCM, modular arithmetic, and modular exponentiation. A gentle on-ramp for interview problems that lean on integer math identities.

JavaScript
number-theory
gcd-lcm
math
quiz

333

7

Easy
Question Bank

Promises and async/await Basics

Beginner drills on Promise resolution order, async/await semantics, and the microtask queue. Three short JavaScript snippets you can predict line-by-line.

JavaScript
promises
async-await
fundamentals
quiz

155

5

Easy
Question Bank

JavaScript Language Trivia

Beginner JS quirks to predict and explain: `==` vs `===`, hoisting, `this` binding in different call sites, and one quick closure trace.

JavaScript
js-hoisting
js-this
closures
quiz

1.1k

23

Easy
Question Bank

JavaScript Coercion and Equality Code Traces

Six output traces drilling on `==` vs `===`, unary `+`, falsy values, and chained relational coercion. Sharpens the rules JS applies before comparing.

JavaScript
quiz
interview-prep
fundamentals
js-language

440

10

Easy
Question Bank

JavaScript Hoisting and TDZ Code Traces

Six traces covering `var` declaration hoisting, function-declaration hoisting, TDZ access of `let`/`const`, and IIFE shadowing. Sharpens the mental model of when a binding exists vs. when it has a value.

JavaScript
quiz
interview-prep
js-hoisting
js-language

642

9

Medium
Question Bank

JavaScript `this` and Arrow Function Code Traces

Six traces covering lost-`this` on extracted methods, arrow inherits-from-enclosing, function-as-constructor return, IIFE `this`, and static vs prototype methods.

JavaScript
quiz
interview-prep
js-this
js-arrow-functions

1k

34

Medium
Question Bank

JavaScript Scope and Closure Code Traces

Six traces covering the `var` loop-closure pitfall, parameter shadowing, IIFE captures, block scope leaks, and `delete` on locals.

JavaScript
quiz
interview-prep
closures
js-lexical-scope

1.1k

11

Medium
Question Bank
Premium

JavaScript Promise, async/await, and Event Loop Traces

Six traces emphasizing microtask vs macrotask ordering, `Promise.all` timing, `await`-as-microtask sequencing, and the classic `var` + `setTimeout` loop pitfall.

JavaScript
quiz
js-event-loop
promises
async-await

832

17

Hard
Question Bank

JavaScript Object Reference and Key Coercion Traces

Six traces covering object-key stringification, reference vs literal equality, `Object.create` prototype chains, and shallow-copy aliasing with arrays.

JavaScript
quiz
references
immutability
js-language

430

2

Easy
Question Bank

JavaScript Array Method Output Traces

Six traces drilling on in-place vs returning array methods: `reverse`, sparse arrays, `indexOf`, `filter(Boolean)`, default lexicographic `sort`, and `copyWithin`.

JavaScript
quiz
arrays
array-manipulation-patterns
interview-prep

193

6

Medium
Question Bank

JavaScript `typeof`, NaN, and Number Quirks Traces

Six traces covering the `typeof` chain, `isNaN` vs `Number.isNaN`, `parseInt` with `map`, the comma operator, `Object.is`, and `Number()` vs `new Number()`.

JavaScript
quiz
js-language
js-number-precision
fundamentals

295

3

Easy
Question Bank
Premium

JavaScript Class, Generator, and Strict-Mode Traces

Four advanced traces covering generator iterator state, the `_id` private-by-convention pattern, strict mode + `Object.defineProperty` enumerability, and try/catch + `var` scope leaks.

JavaScript
quiz
generators
classes
js-strict-mode

894

9

Hard
Question Bank

JavaScript Array and Object Fundamentals Quiz

Test the day-one moves for working with arrays and objects: type-checking, copying, deduping, and the gotchas hiding under shallow vs deep clones.

JavaScript
quiz
arrays
references
fundamentals

759

21

Easy
Question Bank

let, var, const, and Hoisting Conceptual Quiz

Walk through the scoping, redeclaration, and hoisting rules for `var`, `let`, and `const`, plus the TDZ trap that shows up in nearly every interview.

JavaScript
quiz
js-hoisting
variables
fundamentals

338

8

Easy
Question Bank

JavaScript Closures and Private State Quiz

Build the classic closure patterns: encapsulated counters, lexical-scope inheritance through nested functions, and constructor-level private fields.

JavaScript
quiz
closures
js-lexical-scope
interview-prep

417

12

Medium
Question Bank

Prototype Chain and Inheritance Quiz

Practice the prototype-chain mechanics: extending built-ins, defining shared properties on `Object.prototype`, and traversing the chain via `Object.getPrototypeOf`.

JavaScript
quiz
js-prototypes
inheritance
classes

540

8

Medium
Question Bank

JavaScript Immutability and References Quiz

Lock down objects with `Object.freeze`, build read-only properties with `Object.defineProperty`, and reason about why React leans on immutable updates.

JavaScript
quiz
immutability
references
interview-prep

968

5

Medium
Question Bank

JavaScript Modules and Encapsulation Quiz

Compare the module patterns that ship in modern JavaScript: ES modules, the revealing-module IIFE, classic singletons, and method-borrowing via `call`, `apply`, and `bind`.

JavaScript
quiz
modules
js-es-modules
js-iife

1.1k

15

Medium
Question Bank
Premium

Currying and Functional Composition Quiz

Compose, curry, memoize, and partially apply: the higher-order toolkit that turns small JavaScript functions into reusable building blocks.

JavaScript
quiz
currying
composition
higher-order-functions

419

11

Hard
Question Bank

Debounce, Throttle, and Rate Limiting Quiz

Implement the rate-limiting primitives that ship in every UI codebase: debounce, throttle, leading-edge debounce, and `requestAnimationFrame`-paced throttling.

JavaScript
quiz
js-event-loop
performance-optimization
interview-prep

1k

5

Medium
Question Bank

Event Delegation and Event Bus Quiz

Practice DOM event delegation, build a minimal pub/sub event bus, and roll your own dispatcher so cross-component communication stays decoupled.

JavaScript
quiz
js-event-delegation
js-dom
design-patterns

569

10

Medium
Question Bank
Premium

JavaScript Decorators and Metaprogramming Quiz

Wrap methods with cross-cutting concerns: a read-only decorator, a method-timing decorator, and the stage-3 decorator proposal that landed in TC39.

JavaScript
quiz
js-proxy-reflect
design-patterns
interview-prep

1k

24

Hard
Question Bank

Fetch API and Error Handling Quiz

Practice the small but easily-bungled `fetch` rituals: real error handling, Promise wrappers around timers, and `Promise.resolve` / `Promise.reject` for branching success states.

JavaScript
quiz
js-fetch-api
js-error-types
promises

501

12

Medium
Question Bank

JavaScript Control Flow and Conditional Quiz

Read JavaScript's small but treacherous control-flow rules: switch fall-through, ASI biting return statements, and short-circuit logical chains.

JavaScript
quiz
conditionals
loops
fundamentals

753

22

Easy
Question Bank

JavaScript String Manipulation Challenges

Six small-but-tricky string problems: longest-word slicing, list extraction, manual reversal, palindrome checks, anagram detection, and capitalizing every word.

JavaScript
quiz
strings
string-manipulation
interview-prep

515

8

Medium
Question Bank

Numeric Puzzles and FizzBuzz Challenges

Six numeric warm-ups: recursive exponent, random sampling, prime check, recursive 1..n, completing missing numbers, and iterative Fibonacci.

JavaScript
quiz
math
loops
interview-prep

1.1k

5

Medium
Question Bank

Array Cross-Reference and Lookup Challenges

Six lookup-and-filter drills: id-to-id matching with Sets, random sampling without duplicates, valid-only filtering, numeric-only extraction, value-by-row matching, and rest-parameter multipliers.

JavaScript
quiz
arrays
hash-map
array-manipulation-patterns

1k

27

Medium
Question Bank
Premium

Array Sorting and Grouping Challenges

Six sorting/grouping problems: dynamic key sort, multi-key sort, top-N average, date sort, top-N max preserving identity, group-by, and id-driven custom ordering.

JavaScript
quiz
arrays
sorting
hash-map

361

9

Hard
Question Bank

Object Transformation Challenges

Six object-shape problems: building a tree from a flat array, valid-key extraction, chainable methods, stats reshaping, recursive leaf walking, and deep equality.

JavaScript
quiz
references
js-spread-rest
interview-prep

575

2

Medium
Question Bank
Premium

Tree-from-Flat-Array Challenges

Three drills on shape conversion: building a nested tree from a flat list (numeric ids), building from a nested list with string parents, and assembling a graph adjacency list.

JavaScript
quiz
tree-traversal
recursion
array-manipulation-patterns

1.1k

31

Hard
Question Bank
Premium

Generators and Iterators Quiz

Practice the iterator protocol from both sides: write an infinite Fibonacci generator, an async iterable, a `[Symbol.iterator]` implementation, and a `for...of` consumer.

JavaScript
quiz
generators
iterators
js-language

244

3

Hard
Question Bank
Premium

Proxy, Reflect, and Symbol Quiz

Four metaprogramming drills: a logging Proxy, a Proxy-backed data binding, Symbols as private keys, and the Reflect API for safer dynamic property work.

JavaScript
quiz
js-proxy-reflect
js-symbols
js-language

202

3

Hard
Question Bank
Premium

DOM Observer APIs Quiz (IntersectionObserver, MutationObserver)

Use the three DOM observer APIs the browser ships for free: IntersectionObserver for visibility, MutationObserver for DOM diffs, and ResizeObserver for layout changes.

JavaScript
quiz
js-web-apis
js-dom
performance-optimization

517

13

Hard
Question Bank

JavaScript Tooling and Build Trivia

Three quick-fire build-pipeline questions: transpiler vs polyfill, Babel vs SWC, and what source maps actually do.

JavaScript
quiz
js-language
interview-prep
fundamentals

1k

30

Easy
Question Bank

JavaScript Function Fundamentals Quiz

Four day-one essentials about functions: how to define them, when to choose declaration vs expression vs arrow, default parameters, and rest/spread.

JavaScript
quiz
functions
fundamentals
js-arrow-functions

770

19

Easy
Question Bank

React Hooks Fundamentals Quiz

Six drills on the core React hooks: useState, useEffect, useReducer, useCallback, useMemo, and writing custom hooks. Good for tightening mid-level interview answers.

JavaScript
quiz
react
hooks
interview-prep

355

9

Medium
Question Bank

React Component Communication Quiz

Four quick checks on how React components pass data down via props and notify parents via callbacks, plus when render-props become a better tool than another layer of props.

JavaScript
quiz
react
hooks
fundamentals

208

1

Easy
Question Bank

Controlled vs Uncontrolled Components Quiz

Four checks on the controlled / uncontrolled split for React form inputs, including the file-input edge case and the warning React emits when you flip between defaultValue and value.

JavaScript
quiz
react
hooks
js-dom

491

4

Medium
Question Bank

React State Management Without Redux Quiz

Four checks on the non-Redux options for sharing React state: local component state, Context, useReducer, and lightweight stores like Zustand or Jotai.

JavaScript
quiz
react
hooks
state-machine

587

11

Easy
Question Bank

Lifting State and Context API Quiz

Six drills on lifting state to a common ancestor, when to switch to Context, and the useReducer + useContext pattern for a small, self-contained store.

JavaScript
quiz
react
hooks
interview-prep

1.1k

17

Medium
Question Bank

React Error Boundaries and StrictMode Quiz

Four drills on class-component error boundaries and how React.StrictMode surfaces effect bugs by double-invoking lifecycles in development.

JavaScript
quiz
react
hooks
error-handling

570

16

Medium
Question Bank

React Data Fetching and Effects Quiz

Four drills on fetching data with useEffect, avoiding stale closures, and cleaning up in-flight requests when the component unmounts or the input changes.

JavaScript
quiz
react
hooks
js-fetch-api

422

3

Medium
Question Bank

React Router and Code Splitting Quiz

Four drills on declarative routing with react-router and using React.lazy plus Suspense to split bundles per route or per heavy component.

JavaScript
quiz
react
design-patterns
performance-optimization

150

2

Medium
Question Bank
Premium

React Component Patterns and Composition Quiz

Six drills on the classic React patterns: composition over inheritance, render props, higher-order components, compound components, and slot-style children.

JavaScript
quiz
react
design-patterns
composition

327

9

Hard
Question Bank
Premium

React Performance Optimization Quiz

Five drills on memoization, stable references, PureComponent, and the trade-offs between fixing a real render-cost problem and prematurely wrapping everything in memo.

JavaScript
quiz
react
performance-optimization
memoization

1k

8

Hard
Question Bank

React Rendering and Reconciliation Quiz

Four drills on React's virtual DOM, the reconciliation diffing algorithm, and why stable list keys matter so much.

JavaScript
quiz
react
reconciliation
interview-prep

532

15

Medium
Question Bank

React Lifecycle and Class Component Quiz

Four drills on legacy class lifecycle methods that still show up in interviews and codebases: mount/update/unmount, getSnapshotBeforeUpdate, setState batching, and getDerivedStateFromProps.

JavaScript
quiz
react
interview-prep
design-patterns

157

1

Medium
Question Bank

React Portals, Fragments, and StrictMode Quiz

Three drills on three small but tested React features: portals (with their event bubbling quirk), fragments, and what StrictMode does in development.

JavaScript
quiz
react
interview-prep
js-dom

296

8

Medium
Question Bank

React Synthetic Events and Event Pooling Quiz

Three drills on React's SyntheticEvent wrapper, how delegation works, and the difference between the React 16 pooling era and React 17+ behavior.

JavaScript
quiz
react
js-event-delegation
js-dom

906

8

Medium
Question Bank

React Refs and Imperative Handles Quiz

Three drills on using refs to reach into the DOM, forwarding a ref through a wrapper component, and using useImperativeHandle to expose a controlled API.

JavaScript
quiz
react
references
hooks

222

2

Medium
Question Bank
Premium

React SSR and Hydration Quiz

Three drills on the difference between SSR and CSR, what hydration actually does, and how React 18 streaming SSR plus selective hydration change the picture.

JavaScript
quiz
react
performance-optimization
interview-prep

1k

8

Hard
Question Bank

CSS Layout Fundamentals Quiz

Four drills on the foundational CSS layout primitives: the display property, positioning modes, a sticky footer pattern, and the z-index stacking context.

CSS
quiz
css-display
css-positioning
fundamentals

972

10

Easy
Question Bank

CSS Grid and Flexbox Quiz

Four drills on the differences between flexbox and grid, plus the gap, auto-fit, and minmax patterns that show up in real responsive layouts.

CSS
quiz
css-grid
css-flexbox
css-responsive-design

953

8

Medium
Question Bank

CSS Responsive Design and Media Queries Quiz

Three drills on responsive design: classic viewport media queries, modern container queries, and using clamp() for fluid typography that scales between breakpoints.

CSS
quiz
css-media-queries
css-responsive-design
css-units

476

6

Medium
Question Bank

CSS Theming and Custom Properties Quiz

Three drills on theming with CSS custom properties: declaring a token set, switching themes at runtime, and respecting the OS prefers-color-scheme setting.

CSS
quiz
css-variables
css-responsive-design
accessibility

1k

18

Medium
Question Bank

CSS Typography and Effects Quiz

Five drills on practical CSS typography and visual effects: text-shadow, gradients, layered shadows for a faux 3D look, fluid typography with clamp(), and the parallax background-attachment trick.

CSS
quiz
css-fonts-typography
css-shadows
css-gradients

306

9

Easy
Question Bank

CSS Form and Component Styling Quiz

Four drills on styling forms and small components with pseudo-classes, pseudo-elements, and the sibling combinator: dropdown menus, custom checkboxes, accessible accordions, and automatic numbering.

CSS
quiz
css-pseudo-classes
css-pseudo-elements
css-selectors

1.1k

37

Medium
Question Bank

HTML Semantic Tags and Accessibility Quiz

Quick drills on semantic HTML: why it matters, document outline with sectioning elements, figure/figcaption, and ARIA landmark roles for accessibility.

HTML
quiz
html-semantics
html-accessibility
accessibility

1.1k

22

Easy
Question Bank

HTML Media and Interactive Elements Quiz

Six drills on HTML5 media: responsive video embeds, the progress element, canvas drawing, custom audio controls, the picture element for art direction, and image maps.

HTML
quiz
html-media
html-canvas
html-elements

824

14

Medium
Question Bank

HTML Forms and Validation Quiz

Four drills on HTML5 forms: building accessible forms with constraint validation, `<datalist>` autocomplete, the `<output>` element for live calculations, and ARIA roles for error reporting.

HTML
quiz
html-forms
html-attributes
accessibility

419

2

Medium
Question Bank

Array Higher-Order Methods Quiz (map / filter / reduce / find)

Four drills on the core array higher-order methods: reduce for aggregation, filter plus reduce (or Math.max) for selection, find for first-match lookup, and flatMap for one-step map-and-flatten.

JavaScript
quiz
map-filter-reduce
arrays
fundamentals

523

15

Easy
Question Bank

JavaScript Variable Hoisting: var vs let/const Explanations Quiz

Two seeded explanations (var hoisting and the let/const TDZ) plus two companion drills covering function-declaration hoisting and a common interview trap.

JavaScript
quiz
js-hoisting
variables
fundamentals

770

9

Medium
Question Bank

JavaScript Vowel Counting: Three Approaches Quiz

Count vowels in a string three different ways (loop + Set lookup, split + forEach, regex match) plus two companion drills on case sensitivity and big-O analysis.

JavaScript
quiz
strings
string-manipulation
interview-prep

473

7

Medium
Question Bank

JavaScript FizzBuzz: Two Implementations Quiz

Two seeded FizzBuzz implementations (modulo branching and order-sensitive variant) plus two companion drills covering a generalized N-divisors version and a micro-benchmark.

JavaScript
quiz
math
loops
fundamentals

231

5

Medium
Question Bank

JavaScript Take-Out-and-Rest Array: Two Approaches Quiz

Two seeded approaches to build a map of each-element-to-the-rest (reduce + filter and forEach + filter), plus two companions on slice + concat and a complexity discussion.

JavaScript
quiz
arrays
array-manipulation-patterns
js-spread-rest

454

9

Medium
Question Bank

JavaScript Count Backward by Evens: Two Approaches Quiz

Two seeded approaches to enumerate even numbers descending from n (filter-on-step-1 vs step-2 loop), plus two companions on Array.from and an odd-start edge case.

JavaScript
quiz
loops
arrays
fundamentals

1.1k

36

Medium
Question Bank

JavaScript Immutable Object Key Removal: Two Approaches Quiz

Two seeded approaches to remove an object key without mutation (spread + delete, reduce + filter), plus two companions on destructure-and-drop and a deep-clone caveat.

JavaScript
quiz
references
immutability
js-spread-rest

1.1k

26

Easy
Question Bank

JavaScript Object Values to Array: Two Approaches Quiz

Two seeded approaches to convert an object's values to an array (Object.values spread vs Object.keys.map) plus two companions on Object.entries and ordering pitfalls.

JavaScript
quiz
references
arrays
fundamentals

1k

27

Medium
Question Bank
Premium

JavaScript Longest and Shortest Unique Substring: Two Approaches Quiz

Two seeded approaches to find the longest and shortest unique substrings (restart-on-conflict and instrumented restart), plus two companions on a real sliding window and complexity analysis.

JavaScript
quiz
strings
sliding-window
interview-prep

417

2

Hard
Question Bank

JavaScript Group Students by ID: Two Approaches Quiz

Two seeded approaches to group an array of student records by id (reduce + dict and the `in` operator), plus two companions on Map and Object.groupBy.

JavaScript
quiz
arrays
hash-map
array-manipulation-patterns

419

8

Medium
Question Bank

JavaScript Cross-Browser Event Target: Two Approaches Quiz

Two seeded approaches to read the event target across browsers (event.target plus legacy event.srcElement, and a delegated table cell editor), plus two companions on currentTarget and composedPath.

JavaScript
quiz
js-event-delegation
js-dom
js-language

340

7

Medium
Question Bank

JavaScript Largest Difference Without Sort: Two Approaches Quiz

Two seeded approaches to compute the largest pairwise difference in an array without sorting (single-pass min/max and the brute-force nested loop), plus two companions on prefix tracking and a negative-numbers twist.

JavaScript
quiz
arrays
interview-prep
array-manipulation-patterns

184

1

Medium
Question Bank

JavaScript var Loop Closure: Two Explanations Quiz

The classic var-in-a-for-loop closure trap, explained two ways (shared `i` binding and the IIFE capture fix), plus two companions on the `let` per-iteration binding and a queueMicrotask version of the trap.

JavaScript
quiz
closures
js-lexical-scope
interview-prep

354

11

Medium
Question Bank
Premium

JavaScript Deep Object Comparison: Two Approaches Quiz

Diff the keys of two plain objects two ways (JSON.stringify shortcut and a recursive walker), plus two companions on circular references and a Map-based structural diff.

JavaScript
quiz
references
immutability
interview-prep

642

17

Hard
Question Bank
Premium

JavaScript Top-N Numbers (Preserving Order): Two Approaches Quiz

Return the N largest numbers from an array while keeping their original order, two ways (sort-and-filter-back and threshold partition), plus two companions on ties and a heap-style streaming variant.

JavaScript
quiz
arrays
sorting
array-manipulation-patterns

613

8

Hard
Question Bank
Premium

JavaScript Character Occurrence Count: Three Approaches Quiz

Count how often each unique character from a needle string appears in a haystack, three ways (Set + per-char count, dict tally, regex match per char), plus two companions on case folding and a single-pass tally.

JavaScript
quiz
strings
hash-map
interview-prep

690

2

Hard
Question Bank
Premium

JavaScript Min/Max Leave-One-Out Sum: Three Approaches Quiz

Compute the smallest and largest "drop one and sum the rest" totals three ways (sort + slice, total-sum minus extremum, single-pass min/max tracker), plus two companions on streaming inputs and a top-K leave-out generalisation.

JavaScript
quiz
arrays
math
array-manipulation-patterns

983

20

Hard
Question Bank
Premium

JavaScript Top-N Numbers: Two Approaches Quiz

Return the N largest numbers from an array (order-not-required), two ways (sort + slice and one-pass min-tracking buffer), plus two companions on heap-style updates and tie-aware quickselect.

JavaScript
quiz
arrays
sorting
array-manipulation-patterns

344

10

Hard
Question Bank

JavaScript Array Occurrences Count: Two Approaches Quiz

Tally how many times each value appears in an array, two ways (reduce + dict and Map-based counter), plus two companions on Object.create(null) safety and case-insensitive string tallies.

JavaScript
quiz
arrays
hash-map
array-manipulation-patterns

886

27

Medium
Question Bank
Premium

JavaScript String Duplicate Finder: Two Approaches Quiz

Tally character frequencies in a string two ways (explicit loop + counter dict and reduce one-liner), plus two companions on Unicode-aware iteration and duplicates-only filtering.

JavaScript
quiz
strings
hash-map
interview-prep

583

6

Hard
Question Bank
Premium

JavaScript Immutable Key Masking: Two Approaches Quiz

Mask the values of specified keys deeply, leaving the last three characters, two ways (recursive clone + mask and structuredClone + mask), plus two companions on path-based targeting and a JSON.stringify replacer variant.

JavaScript
quiz
references
immutability
interview-prep

385

11

Hard
Question Bank
Premium

JavaScript Grouped Scores Filter: Two Approaches Quiz

Filter a grouped scores object so each row keeps only requested keys, solved two ways (Object.entries + map and a for-in loop), plus companions on Map output and key-rename mapping.

JavaScript
quiz
arrays
hash-map
array-manipulation-patterns

281

6

Hard
Question Bank
Premium

JavaScript Binary Array Plant Pots: Two Approaches Quiz

Decide whether N new plants can be potted into a binary array of pots with no two plants adjacent. Two approaches (greedy single pass, lookahead with neighbour check), plus capacity counting and input validation.

JavaScript
quiz
arrays
greedy
interview-prep

350

8

Hard
Question Bank

JavaScript Lost-this and Four Fixes Quiz

Repair a method whose inner regular function loses `this`, four ways (arrow function, `bind`, save-this-in-self pattern, explicit `.call`), plus an explainer on lexical-vs-dynamic this binding.

JavaScript
quiz
js-this
js-arrow-functions
interview-prep

172

3

Medium
Question Bank

JavaScript String-Only Regex Match: Three Approaches Quiz

Validate that a string contains only letters and whitespace, three ways (`String.prototype.match` + literal, `RegExp.test`, including-special-chars via `\D`), plus companions on Unicode letters and inverting the rule.

JavaScript
quiz
regex
strings
js-language

510

4

Medium
Question Bank

JavaScript Missing Numbers Finder: Two Approaches Quiz

Find missing integers between the min and max of an array, two ways (sort + gap-walk and Set diff over min..max), plus companions on the consecutive-1..n case and detecting duplicates.

JavaScript
quiz
arrays
math
array-manipulation-patterns

227

1

Medium
Question Bank

JavaScript X and O Balance: Two Approaches Quiz

Check whether a string contains an equal count of `x` and `o` (case-insensitive), two ways (regex match-array length and filter + length), plus companions on counting any pair of characters and treating empty input.

JavaScript
quiz
strings
string-manipulation
fundamentals

636

15

Medium
Question Bank

JavaScript Inherit x From Function b: Two Approaches Quiz

Make constructor `b` inherit `x` from constructor `a`: parent-constructor call via `Function.prototype.call`, ES6 `extends` + `super`, `Object.create` chaining, and an arrow-vs-constructor explainer.

JavaScript
quiz
closures
inheritance
interview-prep

705

4

Medium
Question Bank

JavaScript Function Declaration vs Expression Hoisting: Two Explanations Quiz

Trace mixed declaration / expression calls before either is defined: declaration fully hoisted vs expression-as-var only binding hoisted, plus TDZ for let/const and named function expressions.

JavaScript
quiz
js-hoisting
functions
js-language

435

7

Medium
Question Bank
Premium

JavaScript Array Pair Extraction: Two Approaches Quiz

Split an array into consecutive pairs (with a trailing single when the length is odd), two ways (reduce with odd-index push and a stepped slice loop), plus companions on a generic chunk size and a lazy generator variant.

JavaScript
quiz
arrays
array-manipulation-patterns
interview-prep

1k

12

Hard
Question Bank

JavaScript Spread Operator Refactor: Two Explanations Quiz

Refactor a manual `sum(nums[0], nums[1], nums[2])` call with the spread operator, two equivalent shapes (spread shortcut and the older `apply(null, nums)` form), plus companions on rest parameters and array-spread vs concat.

JavaScript
quiz
js-spread-rest
arrays
fundamentals

263

1

Easy
Question Bank
Premium

JavaScript Largest Difference in Array: Three Approaches Quiz

Three seeded ways to compute the maximum pairwise gap in an integer array (sort and subtract ends, reduce with Math.max and Math.min, single-pass tracker), plus two companions on edge cases and complexity.

JavaScript
quiz
arrays
math
array-manipulation-patterns

743

6

Hard
Question Bank

JavaScript Class Static vs Instance: Two Explanations Quiz

Two seeded explanations of how a `Person` class with a static method, a getter, and an instance method behaves when called via `new`, plus two companions on getter syntax and static field inheritance.

JavaScript
quiz
classes
js-prototypes
js-language

1.1k

26

Medium
Question Bank

JavaScript Pair-Sum Finder: Two Approaches Quiz

Two seeded ways to test whether two numbers in an array add up to a target (nested loop and Set complement), plus two companions on time complexity and on returning the actual pair instead of a boolean.

JavaScript
quiz
arrays
hash-map
interview-prep

1.1k

35

Medium
Question Bank

JavaScript find vs filter for Student Lookup Quiz

Two seeded approaches to look up students by name: `find` returns the first match, `filter` returns every match. Two companions cover return-type pitfalls and short-circuit semantics.

JavaScript
quiz
arrays
array-manipulation-patterns
fundamentals

807

20

Easy
Question Bank

JavaScript String Lengths Array: Four Approaches Quiz

Four seeded ways to turn an array of strings into an array of their lengths (map, for-loop with push, reduce, for-of), plus one companion on a recursive variant.

JavaScript
quiz
arrays
map-filter-reduce
fundamentals

253

5

Medium
Question Bank
Premium

JavaScript Recipe Batches: Two Approaches Quiz

Two seeded ways to compute how many full batches can be produced from available materials (imperative loop with Math.min and a reduce-based variant), plus two companions on missing-key handling and zero-quantity edge cases.

JavaScript
quiz
arrays
math
interview-prep

966

11

Hard
Question Bank

JavaScript Factorial: Three Implementations Quiz

Three seeded ways to compute n! (iterative loop, classic recursion, reduce), plus two companions on memoization and on guarding against negative inputs.

JavaScript
quiz
recursion
math
interview-prep

298

3

Medium
Question Bank

JavaScript Square and Join Digits: Two Approaches Quiz

Two seeded ways to square each digit of an integer and concatenate the results (string split with map and join, plus a while-loop modulo extraction), with two companions on negative numbers and on returning a string.

JavaScript
quiz
math
strings
array-manipulation-patterns

489

14

Medium
Question Bank
Premium

JavaScript Group By ID with Average Score: Two Approaches Quiz

Two seeded ways to group records by id and compute each group's average (bucket-then-divide vs running sum + count), plus two companions on min/max per group and on memory trade-offs at scale.

JavaScript
quiz
arrays
hash-map
array-manipulation-patterns

329

5

Hard
Question Bank

JavaScript Set and Map Values Output: Two Explanations Quiz

Two seeded explanations of how `Set` and `Map` expose their values via iterators and what `console.log` prints when you call `.values()` on each, plus two companions on insertion-order guarantees and on de-duplication semantics.

JavaScript
quiz
arrays
js-language
interview-prep

540

13

Medium
Question Bank

JavaScript Add-N via Currying: Two Approaches Quiz

Two seeded ways to build an `adder(n)` that adds `n` to its argument (closure-returning-function and `Function.prototype.bind`), plus two companions on three-arg currying and a generic curry helper.

JavaScript
quiz
currying
closures
higher-order-functions

629

16

Medium
Question Bank

JavaScript Merge Two Objects: Three Approaches Quiz

Three seeded ways to merge two plain objects (spread, `Object.assign`, and a manual `for...in` copy), plus two companions on shallow-vs-deep semantics and on which approaches mutate the target.

JavaScript
quiz
references
js-spread-rest
interview-prep

549

17

Medium
Question Bank

React ReactDOMServer: Two Explanations Quiz

Two explanations of `react-dom/server` rendering APIs (string vs streaming) plus companions on streaming SSR with `renderToPipeableStream` and on hydration mismatches.

JavaScript
quiz
react
performance-optimization
interview-prep

482

15

Medium
Question Bank

React Controlled vs Uncontrolled Components: Two Explanations Quiz

Two explanations of controlled vs uncontrolled inputs with concrete code, plus companions on `defaultValue` and on extending the controlled idea beyond form inputs.

JavaScript
quiz
react
hooks
js-dom

977

16

Easy
Question Bank

React Stateful vs Stateless Components: Two Explanations Quiz

Two explanations of the stateful/stateless (smart vs presentational) split, plus companions on hooks-era state in function components and on testability trade-offs.

JavaScript
quiz
react
interview-prep
fundamentals

929

22

Easy
Question Bank
Premium

React Code-Splitting: Two Explanations Quiz

Two explanations of code-splitting (bundler-level vs `React.lazy` + `Suspense`) plus companions on preloading routes and on splitting non-component utilities.

JavaScript
quiz
react
performance-optimization
design-patterns

896

7

Hard
Question Bank
Premium

React Hooks API Tour Quiz

Six drills covering core hooks: a what-is-a-hook intro plus targeted exercises on useState, useRef, useLayoutEffect, useMemo, and useReducer with runnable examples.

JavaScript
quiz
react
hooks
interview-prep

899

7

Hard
Question Bank
Premium

React HOC for Conditional Render (Auth-Aware): Two Approaches Quiz

Two approaches to a conditional-render HOC for authentication (props-based gate vs context-based gate), plus companions on the hook equivalent and on the HOC return-type contract.

JavaScript
quiz
react
design-patterns
composition

1k

18

Hard
Question Bank
Premium

React Portals: Two Explanations Quiz

Two explanations of React portals (mechanics and use cases, plus event bubbling through the virtual tree) with companions on a Modal implementation and a portal-aware focus trap.

JavaScript
quiz
react
js-dom
interview-prep

844

23

Hard
Question Bank

React Auto-Focus With Refs: Two Approaches Quiz

Two approaches to auto-focusing an input in React (`useRef` + `useEffect` vs the native `autoFocus` prop), plus companions on focusing after async state and on focusing inside a portal.

JavaScript
quiz
react
references
hooks

1k

28

Medium