46 frontend interview questions, asked at Amazon, Apple, Snowflake and 21 more companies. Last asked Oct 2026.
Build a driving-log replay viewer with an AI assistantCodingYou have read access to a cloud storage bucket of recorded autonomous-vehicle logs and about two hours to build a minimal app that plays a drive back as an interactive…
Design a real-time comment feed with optimistic updatesSystem designDesign the front end of a live comment section: comments from other people appear as they are posted, and the viewer can post their own. The focus is optimistic posting.
Last asked Sep 2026
Credit card form with validation and linked fieldsCodingBuild a credit card form in the browser: card number, name on card, expiry date (MM/YY) and security code (CVC). Each field is validated, and submit sends the values only when…
Render nested JSON in a code-style viewerCodingBuild a read-only React component that shows a JSON value the way a code editor would: indentation, braces and brackets, keys and values coloured by type, and objects and arrays…
Last asked Sep 2026
React list loaded with useEffectCodingWrite a React component that loads a list from an endpoint with useEffect and displays it, with loading, empty, success and error states. When the endpoint changes, a response…
Last asked Sep 2026
Filter an n-ary tree by substring and render it indentedCodingEach node of an n-ary tree holds a string value and a list of children. First write a function that removes every node whose value contains a given substring, together with its…
Autocomplete product search boxCodingBuild a front-end search box that suggests products as the user types. The backend returns the ten best-ranked products for a query.
Last asked Aug 2026
Accessible popovers that load dataCodingA page has several buttons. Each opens its own popover, and the popover fetches its content when it opens.
Last asked Aug 2026
JavaScript let versus varCodingThe interviewer shows short JavaScript snippets and asks what each prints, then asks you to explain why. The point is the difference between var and let: function scope against…
Last asked Aug 2026
Arrow-key controlled kanban board in ReactCodingBuild a kanban board in React and TypeScript. The board has ordered columns (for example To do, In progress, Done), each holding a list of task cards.
Last asked Aug 2026
Design calendar front-end state for recurring eventsSystem designDesign the front-end state and the client-server API for a calendar web app with recurring events. The client shows bounded views (a day, a week, a month), so it never loads all…
Accessible expand-and-collapse tree in ReactCodingBuild a React component that renders nested data as a tree. Branches can be expanded and collapsed to any depth, and each branch keeps its own open or closed state while the user…
Last asked Jul 2026
Build a React interface against an undocumented APICodingYou get a small React app and access to an HTTP API that has no documentation. An AI coding assistant is available, and you are expected to use it deliberately rather than paste…
Last asked Jun 2026
Debug an Angular UI from user reportsCodingYou are given an existing Angular component and a few concrete user bug reports about it. Reproduce each failure, find the cause in the code, fix it with a small change and show…
Last asked May 2026
Parking lot manager in ReactCodingBuild a small React app that manages a parking lot. The screen shows every spot and whether it is free, lets an attendant park an arriving vehicle and check one out, and charges a…
Last asked May 2026
Build a chat input that renders a streamed AI replyCodingBuild a bare-bones AI assistant chat page: a text input, a submit button, and below them the assistant's reply, which streams in chunk by chunk as it arrives rather than appearing…
Last asked Apr 2026
Design an embeddable streaming chat interfaceSystem designFor a frontend role: design a chat widget for an AI agent that other products can embed in their pages. The agent's replies stream in as they are generated. Cover how the widget…
Last asked Apr 2026
Render more than 100 million points on a mapSystem designFor a frontend role: design an interactive web map that shows more than 100 million data points. At wide zoom levels it shows aggregated information such as a heat map; zoomed all…
Last asked Apr 2026
Infinite-scroll news feed in TypeScriptCodingBuild a page that shows a feed of article cards and loads more as the reader scrolls toward the bottom, using the mock data and fetch helper you are given. The interviewer looks…
Last asked Apr 2026
Autocomplete data fetching with debounce, retry and cachingCodingThe UI of an autocomplete input is already built. Write only the data-fetching logic behind it: given the current query, fetch suggestions with debouncing, so that the latest…
React Battleship board that tracks sunk shipsCodingBuild a single-player Battleship-style board in React: just the board and the logic that decides which ships are sunk. No opponent, no turns, no networking. The board is an N x N…
React fundamentals and error handlingCodingA conversation about React, followed by how you deal with errors in a React app. Explain each point with a short code example where it helps. 1. The virtual DOM and…
Last asked Feb 2026
Responsive grid of fixed-size boxesCodingBuild a page that lays out many fixed-size boxes in a grid that reflows with the window: each row holds as many boxes as fit, and the rest wrap to new rows. Explain the CSS you…
Last asked Jan 2026
React class components, lifecycle methods and hooksCodingA frontend fundamentals round: explain how React components handle state and side effects, first with class components and then with hooks, and reason through the bugs each style…
Last asked Jan 2026
Implement an event emitterCodingImplement a small event emitter for a frontend codebase, like the one in Node or in many UI libraries. Code subscribes handlers to named events and other code emits those events…
Last asked Jan 2026
Reusable modal dialog component for a UI libraryCodingBuild a reusable dialog (modal) component for a web component library. The caller sets the backdrop colour, a title, the body content and a list of action buttons; the dialog has…
Last asked Oct 2025
React hook for API data and UI changes in a starter appCodingYou are given a starter React app with an API client and some UI already written. First write a custom hook that calls the API and converts the response into the shape the UI…
Last asked Sep 2025
Searchable transaction list that highlights the largestCodingBuild a small UI component that takes a list of transactions {name: string, amount: number}, renders them, lets the user filter them, and highlights the largest transaction among…
Last asked Sep 2025
Design the front end of a desktop AI chat appSystem designDesign the client side of a cross-platform desktop chat app for an AI assistant (built with Electron, Tauri or a native web view): the list of conversations, the chat view…
Last asked Sep 2025
Debounce and throttle in JavaScriptCodingImplement debounce and throttle in JavaScript, as a utility library would ship them. - debounce(fn, wait, options) returns a function that delays calling fn until wait…
Last asked Sep 2025
Passport number form with per-country formatsCodingYou get a map from country to passport number format, for example {USA: "LLDDDD", Canada: "AALLDDDD"}. In a format, L is a letter (A to Z, either case), D is a digit and A is a…
Last asked Aug 2025
Build a booking widget with live pricingCodingBuild a small reservation widget for one listing, with a front end and a simple back end. The guest picks check-in and check-out dates and the number of adults and children, sees…
Last asked Aug 2025
Paginated, sortable React tableCodingBuild a React table component that takes its rows and its column definitions as data, sorts by a column when the user clicks its header, and splits the rows into pages. Focus on a…
Last asked Aug 2025
Find bugs and slow renders in a React appCodingYou get a small React app that works but has several bugs and performance problems. Find and fix them: unnecessary re-renders, event listeners that leak, and parts that render in…
Last asked Aug 2025
Collapsible JSON viewer in ReactCodingIn an hour of React, build a component that takes a JSON string and shows it as a pretty-printed, read-only tree. Every nested object and array gets a toggle (such as a caret)…
Sudoku solver with a React boardCodingIn React, show a Sudoku puzzle as an editable 9x9 board and add a way to solve it. Write the solver yourself: fill every empty cell so that each row, each column and each 3x3 box…