1 Month Plan
A balanced four-week plan covering every round.
Four themed weeks: JavaScript and async, React and UI coding, algorithms and the web platform, then system design and leadership. Each week mixes practice with the quiz concepts behind it so you can explain your code as well as write it.
0 / 144 completed
Week 1: JavaScript & async
0/30
1.Debounce
Delay invoking a function until a burst of calls has stopped for a given wait time.
2.Throttle
Limit a function to at most one call per wait window, with leading and trailing calls.
3.Promise.all
Implement Promise.all: resolve with every result in order, or reject on the first failure.
4.Promise.any
Implement Promise.any: fulfill with the first success, or reject with an AggregateError.
5.Promisify
Convert a Node-style callback function into one that returns a promise.
6.Map Async with Limit
Map over a list with an async callback while never running more than a given number of calls at once.
7.Promise Pool
Build a concurrency-limited task queue: tasks can be added at any time and at most N run at once.
8.Retry with Backoff
Retry a failing async operation with exponential backoff and a predicate that decides which errors are worth retrying.
9.Deep Clone
Make a deep copy of a JSON-like value so that no nested object or array is shared with the original.
10.Deep Equal
Decide whether two JSON-like values are structurally equal, comparing nested objects and arrays by content.
11.Flatten
Flatten a nested array to a given depth, recursively or with an explicit stack.
12.Memoize
Cache a function's results by argument so repeated calls with the same input skip the work.
13.Curry
Turn a function of n arguments into one that can be called with those arguments one or several at a time.
14.Event Emitter
Implement an EventEmitter class with on, off and emit, the observer pattern behind Node's events module and DOM events.
15.classnames
Build a CSS class string from strings, numbers, nested arrays and conditional objects.
16.getElementsByClassName
Find every descendant element that has all of the given class names by walking the DOM tree yourself.
17.JSON.stringify
Reimplement JSON.stringify: escaping, undefined and function handling, toJSON, wrapper objects, cycles and BigInt errors.
18.LRU Cache
Implement a fixed-capacity cache that evicts the least recently used entry, with O(1) get and set.
19.Array.prototype.filter
Implement Array.prototype.filter with thisArg support and correct handling of sparse arrays.
20.Array.prototype.map
Implement Array.prototype.map, keeping holes in sparse arrays and supporting thisArg.
21.What is the event loop? Explain the difference between the macrotask and microtask queues.
How JavaScript schedules callbacks, promises and rendering on a single thread.
22.What is a closure, and how/why would you use one?
A closure is the combination of a function and the lexical environment within which that function was declared. The word "lexical" refers to the fact that lexic
23.Explain how this works in JavaScript
There's no simple explanation for this; it is one of the most confusing concepts in JavaScript. A hand-wavey explanation is that the value of this depends on ho
24.Explain how prototypal inheritance works
All JavaScript objects have a proto property with the exception of objects created with Object.create(null), that is a reference to another object, which is cal
25.Explain event delegation
Event delegation is a technique involving adding event listeners to a parent element instead of adding them to the descendant elements. The listener will fire w
26.What is reconciliation in React?
How React decides which instances to keep, update or remount, based on type, position and key.
27.What is the difference between `useEffect` and `useLayoutEffect` in React?
Effect timing relative to paint, and when blocking paint is worth it.
28.What are React Server Components and how do they differ from SSR?
Server-only components that ship no JS, the use client boundary, and how RSC complements SSR.
Week 2: React & UI coding
0/36
1.Todo List
Build a todo list with add, complete, delete and filters, using semantic forms and good focus management.
2.Tabs II: Keyboard Accessible
Add roving tabindex, arrow-key navigation and automatic or manual activation to a tabs component.
3.Accordion
Build an accessible accordion with expandable sections and full keyboard support.
4.Star Rating
Build a star rating input with hover preview, keyboard support and a clear button, built on native radios.
6.Data Table II: Sorting and Filtering
Add sortable column headers and a search filter to a paginated users table.
7.Autocomplete / Typeahead
Build an accessible combobox that searches an async API with debouncing, caching and race-condition handling.
8.Image Carousel
Build an accessible image carousel with previous/next controls, wrap-around and dot navigation.
9.File Explorer
Render a nested folder/file tree where folders expand and collapse, sorted folders-first.
10.Nested Checkboxes
Build a checkbox tree where parents reflect their children as checked, unchecked or indeterminate.
11.Progress Bars II: Concurrency Limit
Extend the progress bars so at most three fill at once while the rest wait in a queue.
12.Tic-tac-toe
Build a two-player tic-tac-toe game with win and draw detection, a live status and a keyboard-navigable board.
13.Transfer List
Move checked items between two lists with per-list select-all and bulk transfer controls.
14.Infinite Scroll Feed
Build a cursor-paginated feed that loads more posts as you scroll, with abort handling, retries and the ARIA feed pattern.
15.Virtualized List
Render a 10,000-row list smoothly by windowing: only the visible rows plus overscan are in the DOM.
16.Contact Form
Build a contact form with accessible inline validation, a submitting state and a success message.
17.Digital Clock
Build a ticking digital clock that stays aligned to real seconds, with a 12/24-hour toggle and clean timer teardown.
18.Generate Table
Generate a numbered table from row and column inputs, filled row by row, column by column or in a snake pattern.
19.Like Button
Build a toggle Like button that talks to a flaky API, with pending, error and accessible pressed states.
20.Tabs
Build a tabs component that shows one panel at a time, with the correct tab roles and selected state.
21.Data Table
Build a paginated users table with a rows-per-page selector and previous/next navigation.
22.Job Board
Build a paginated job board on a Hacker News-style API: fetch ids, then load job details in parallel pages.
23.Memory Game
Build a card-matching memory game with timed flip-back, move counting and screen-reader friendly announcements.
24.Modal Dialog
Build a reusable modal dialog with a portal, labelled dialog semantics, Escape and backdrop dismissal, and focus restoration.
25.What are the Core Web Vitals today, how are they measured, and what are the thresholds?
LCP, INP and CLS: what each one captures, the p75 thresholds, and lab vs field data.
26.Walk through the critical rendering path. What blocks rendering, and how do you shorten it?
HTML parsing, CSSOM, render-blocking vs parser-blocking resources, the preload scanner and first paint.
27.Explain stored, reflected and DOM-based XSS. Does using React make you safe?
The three XSS classes, what JSX escaping does and doesn't cover, and defence in depth.
28.Design an HTTP caching strategy for a web app: Cache-Control, ETag and stale-while-revalidate.
Immutable hashed assets, revalidated HTML, CDN vs browser caches, validators and common caching incidents.
29.Explain generics and generic constraints in TypeScript
Type parameters that preserve relationships, constraints, defaults, const and NoInfer.
30.What are the benefits of using hooks in React?
Reusable stateful logic, co-location by concern, and no classes.
31.What are the common pitfalls of using the `this` keyword?
Lost receivers, callbacks, nested functions, arrow methods on objects and class field trade-offs.
32.What is the difference between controlled and uncontrolled React components?
Who owns the value, React state or the DOM, and the trade-offs of each.
33.Explain the concept of debouncing and throttling
Run after activity stops versus at most once per interval, with implementations and use cases.
34.How do you handle errors in asynchronous operations?
try/catch with await, .catch, unhandled rejections, fetch HTTP errors, aggregation and retries.
Week 3: Algorithms & web platform
0/46
1.Two Sum
Find the two items in a list whose values add up to a target, in a single pass with a hash map.
2.Valid Parentheses
Check that every bracket in a code snippet is closed by the right kind, in the right order.
3.Merge Intervals
Collapse overlapping calendar events into the minimal set of busy blocks.
4.Meeting Rooms II
Find the minimum number of rooms (or calendar columns) needed so no two overlapping meetings share one.
5.Binary Search
Find a value's index in a sorted array in logarithmic time.
6.Top K Frequent Elements
Return the k most frequent values in a list, faster than sorting everything.
7.Number of Islands
Count connected regions of filled cells in a grid with flood fill.
8.Topological Sort
Order modules so each one comes after everything it imports, and detect circular imports.
9.Best Time to Buy and Sell Stock
Find the largest gain from one buy followed by one later sell in a price history.
10.Binary Tree Traversals
Return the pre-order, in-order and post-order traversals of a binary tree.
11.Climbing Stairs
Count the ways to reach the top taking one or two steps at a time, the gentlest intro to DP.
12.Queue
Build a first-in, first-out queue class with O(1) enqueue and dequeue.
13.Stack
Build a last-in, first-out stack class, the structure behind undo history and the call stack.
14.Breadth-First Search
Find the fewest clicks between two pages of a site with breadth-first search.
15.Coin Change
Find the fewest coins (or credit packs) that add up exactly to an amount, using dynamic programming.
16.Course Schedule
Decide whether a set of lessons with prerequisites can all be completed, by detecting cycles.
17.Array.prototype.reduce
Implement Array.prototype.reduce, including the no-initial-value rules and sparse arrays.
18.Unique Array
Remove duplicate values from an array while keeping the first occurrence of each, in order.
19.Array.prototype.flat
Implement Array.prototype.flat with a depth argument, hole removal and an iterative variant.
20.Cache Async (Deduplicate Requests)
Memoize an async function so concurrent calls share one in-flight promise, results expire after a TTL and failures are not cached.
21.Data Selection
Implement a small query function over an array of records: filtering, multi-key stable sorting, pagination and field projection.
22.Event Emitter II
Extend an event emitter with once, unsubscribe handles, bulk off and listener counts, with well-defined behaviour during emit.
23.Function.prototype.bind
Implement Function.prototype.bind with partial application and correct behaviour under new.
24.Get
Safely read a nested value from an object by a dot/bracket path, falling back to a default.
25.getElementsByTagName
Return every descendant element with a given tag name (or all of them for "*") by traversing the DOM tree.
26.Group By
Group the elements of an array into arrays keyed by the result of an iteratee.
27.List Format
Format a list of names into a readable sentence with options for sorting, de-duplication and an "and N others" cutoff.
28.Map Async
Map over a list with an async callback, running every call in parallel and keeping the results in input order.
29.How do you import and export modules in JavaScript?
Named, default, namespace, re-export and dynamic imports, and live bindings.
30.What are the various data types in JavaScript?
The seven primitives plus objects, typeof quirks, and value vs reference semantics.
31.What are modules and why are they useful?
Scope isolation, explicit dependencies, tree shaking and code splitting with ES modules.
32.Explain the concept of lazy loading and how it can improve performance
Deferring images, iframes, code and data until needed, and when not to.
33.Explain the concept of lexical scoping
Scope decided by where code is written, the scope chain, and how it enables closures.
34.What is the purpose of the `key` prop in React?
Keys give list items stable identity for reconciliation and state.
35.What is the `useRef` hook in React and when should it be used?
A persistent mutable box for DOM nodes and values that don't affect rendering.
36.What are the rules of React hooks?
Top-level only, React functions only, why call order matters, and lint enforcement.
37.Explain the concept of scope in JavaScript
Global, module, function and block scope, the scope chain, shadowing and the temporal dead zone.
39.What are Sets and Maps and how are they used?
Unique-value collections and keyed collections with any key type, plus new Set methods.
40.What is the difference between state and props in React?
Props are inputs owned by the parent; state is memory owned by the component.
41.Why do my effects run twice in development, and how should I fix it?
Strict Mode's mount-unmount-mount check and how to write symmetric cleanups.
42.What is the difference between `any`, `unknown` and `never` in TypeScript?
The escape hatch, the safe top type, and the empty bottom type.
43.What is the difference between an interface and a type alias in TypeScript?
Declaration merging and extends vs unions, tuples and type-level computation.
44.What is structural typing in TypeScript and what are its implications?
Compatibility by shape, excess property checks, and when you need nominal types.
Week 4: System design & leadership
0/32
1.News Feed (e.g. Facebook)
Design an infinitely scrolling, personalised social feed with posts, reactions, comments and live updates.
2.Autocomplete / Typeahead Component
Design a reusable, accessible autocomplete component with debounced search, caching, race handling and keyboard navigation.
3.Chat Application (e.g. Messenger)
Design a real-time web messenger with conversations, delivery and read receipts, typing indicators and offline support.
4.E-commerce Marketplace (e.g. Amazon)
Design the front end of a large e-commerce site: search and listing, product detail, cart and checkout, with SEO and Core Web Vitals in mind.
5.Photo Sharing App (e.g. Instagram)
Design a photo-first social app: image feed, profile grid, upload with client-side processing, and likes and comments.
6.Collaborative Document Editor (e.g. Google Docs)
Design a real-time collaborative rich-text editor with presence, comments, offline edits and version history.
7.Data Table / Data Grid Component
Design a reusable data table with sorting, filtering, pagination, selection, column resizing and virtualization.
8.Modal Dialog Component
Design an accessible modal dialog: native dialog vs custom, focus trapping, scroll locking, stacking and API.
9.Design System at Scale
Design a company-wide design system (tokens, components, docs, tooling) consumed by dozens of teams across multiple frameworks and brands.
10.Micro-Frontend Platform
Design a platform that lets many teams build, deploy and compose independently released front-ends into one coherent product.
11.Front-End Observability Platform (RUM, Errors, Tracing)
Design an org-wide front-end observability platform covering real user monitoring, error tracking with source maps, and distributed tracing.
13.Dropdown Menu Component
Design an accessible dropdown/action menu with submenus, typeahead, robust positioning and focus management.
14.Image Carousel Component
Design an accessible, performant image carousel with swipe, autoplay, lazy loading and responsive images.
15.Embeddable Poll Widget
Design a poll widget embeddable on many sites, with voting, live results, abuse prevention and isolation.
16.Collaborative Spreadsheet (e.g. Google Sheets)
Design a browser spreadsheet with a virtualized grid, formula engine, dependency graph and real-time co-editing.
17.Tell me about yourself (lead edition)
A two-minute career pitch that frames you as a front-end lead: scope, impact, how you lead and why this role is the next step.
18.Tell me about a project you led end to end
Walk through a front-end initiative you owned from problem framing to measured outcome, showing scope, trade-offs and how you led people.
19.Influencing without authority
Show how you got other teams to adopt a front-end change you could not mandate, using evidence, low-friction paths and allies.
20.A disagreement with a product manager
Show how you handled a real conflict with product over scope, quality or approach, and reached a decision that served users and the business.
21.A production incident you owned
Walk through a front-end production incident: detection, mitigation, communication, root cause and the blameless follow-up that prevented a repeat.
22.Prioritising tech debt against features
Explain how you made the business case for front-end tech debt work, balanced it with roadmap pressure and showed the payoff.
23.Mentoring an underperforming engineer
Describe how you diagnosed why an engineer was struggling, set clear expectations, supported them and handled the outcome honestly.
25.A technical decision you would make differently
Describe a significant front-end architecture decision that aged badly, how you recognised it and what you changed in how you decide.
26.Do you have any questions for me?
Use the last minutes of the interview to learn what you need to decide and to show how a lead thinks about a team.
27.Tell me about a failure and what you learned
Describe a real failure you were responsible for, how you handled the fallout and what changed in how you work afterwards.
28.What is the hardest bug you have fixed?
Tell a debugging story that shows systematic investigation, technical depth and how you prevented the bug class from returning.
29.Receiving critical feedback
Share a time you received tough feedback, how you processed it, what you changed and how you checked that the change stuck.
30.Why are you leaving your current job?
Answer honestly and positively, framing the move around what you are moving towards, including tricky cases like layoffs or short tenures.