BetaJobprepping.com is in beta and still under construction. New sign-ups are closed.
Start practising
Frontend Engineer

Frontend Engineer Interview Guide with Questions and Prep

How the frontend engineer interview works, the UI, performance and accessibility skills it scores, 8 practice questions with strong answers, and a 7-day plan.

Updated

A frontend engineer interview tests whether you can build web interfaces that are fast on a mid-range phone, usable with a keyboard and a screen reader, secure, and easy for other teams to reuse. Expect questions on rendering and accessible components, a performance regression to diagnose, a code review, a state bug, a component to design, flaky tests, a product manager who wants to launch early and behavioural questions about things you broke and disagreements with design.

What the job really is#

A product frontend engineer turns designs and APIs into pages people actually use: search results, a booking flow, a dashboard. The visible part is components and styling, but most of the judgment sits underneath: where state lives, what renders on the server and what in the browser, how the page behaves on a slow phone, what a screen reader announces, and what happens when a request fails or returns late.

Teams hire frontend engineers who measure before optimising, treat accessibility and security as part of done, and can explain a trade-off to a designer or product manager without jargon.

Our practice interviews are set at Cobblestay, a fictional holiday-rental marketplace where guests search, book and pay on the web, and hosts manage listings and messages in a web dashboard. The site gets about 30 million visits a month, 70 percent on phones, and is built with React and TypeScript on Next.js, with a shared design system used by five product teams. The interviewer is Arjun, the frontend engineering manager.

What the frontend engineer interview process looks like#

A typical loop in 2025 and 2026 runs:

  1. A recruiter screen on your experience and the frameworks you know.
  2. A technical screen: a JavaScript or TypeScript exercise, building a small component, or a take-home.
  3. A final round: UI coding, frontend system design (a component library, a feed or a search page), questions on browsers, performance and accessibility, and a behavioural interview.

Our practice papers condense that into one session with an AI voice interviewer, and some rounds put a short piece of code or data on your screen to talk through. The 45 and 60-minute papers also have a two-part live coding round, in TypeScript or JavaScript.

  • 30 minutes: introductions (2), accessible components (5), a performance regression (10), a code review (6), when something broke (4), your questions (2), wrap-up (1).
  • 45 minutes: introductions (3), when something broke (6), a two-part coding round (18), a code review (7), component design (7), your questions (3), wrap-up (1).
  • 60 minutes: introductions (3), rendering choices (5), a two-part coding round (20), search state (7), flaky end-to-end tests (6), a rushed launch (7), working with design and product (7), your questions (4), wrap-up (1).

See how the practice interviews work.

Skills scored and how they are weighted#

Each skill is rated Not yet, Developing, Hire-ready or Standout, with quotes from what you said as evidence. UI engineering is the must-have: it needs Hire-ready for an overall yes.

  • UI engineering (must-have, 35%): clean components and state, with loading, errors, offline and accessibility handled, and performance measured.
  • Coding (20%): working, readable TypeScript or JavaScript that passes hidden tests, in the 45 and 60-minute papers.
  • Debugging (15%): forming and testing hypotheses in order, and limiting the damage first.
  • System design (10%): sound designs with trade-offs and failure modes, and a plan for shipping and monitoring them.
  • Communication (10%): explaining technical choices to engineers, designers and product managers.
  • Ownership (10%): owning what you ship, including when it breaks.

Frontend engineer interview questions to practise#

We wrote these for this guide. They show the style of each round, not the content of any paper.

Components and state#

  1. What causes unnecessary re-renders in a React app, and how do you find and fix them? A strong answer names the usual causes (new object and function props on every render, a context value that changes too often, state kept higher in the tree than it needs to be), measures with the React DevTools profiler before changing anything, and fixes by moving state down, splitting contexts or memoising where the profile shows it helps.
  2. How would you make a list of 5,000 items scroll smoothly? A strong answer renders only the rows on screen with a virtualised list, keeps row keys stable, avoids layout work while scrolling, and considers pagination instead. It mentions what virtualisation costs, such as browser find-in-page and screen readers not seeing rows that aren't rendered.
  3. How do you make a form accessible? A strong answer uses real labels tied to each input rather than placeholders, groups related controls with a fieldset and legend, connects error messages to their fields and announces them, moves focus to the first problem on submit, doesn't rely on colour alone, adds autocomplete attributes for personal details, and tests with a keyboard and a screen reader.

Performance and security#

  1. How would you reduce the amount of JavaScript a page ships? A strong answer starts with a bundle analysis, splits code by route and by heavy components loaded on demand, removes or replaces large dependencies, renders on the server what needn't be interactive, delays third-party scripts, and checks the effect in real-user data rather than one lab run.
  2. What does a Content Security Policy do, and how would you introduce one without breaking the site? A strong answer says the policy tells the browser which sources of scripts, styles and other resources to trust, and can block inline scripts unless they carry a nonce or hash. It rolls the policy out in report-only mode first, fixes what the reports show, then enforces it, and treats it as a second line of defence behind safe rendering.

Testing and code health#

  1. What would you cover with unit tests, and what with end-to-end tests? A strong answer puts pure logic and component behaviour in fast unit and integration tests written from the user's point of view, and saves end-to-end tests for the few journeys that matter most, such as search, booking and payment, because they are slower and more fragile. It adds that a flaky test should be fixed or removed, not ignored.
  2. How would you turn on TypeScript's strict mode in a large existing codebase? A strong answer does it gradually: strict checking for new and high-risk code first, a CI check that stops new errors, a tracked list of exceptions, and a steady plan to clear the rest, rather than one huge pull request.

Behavioural#

  1. Tell me about a technical decision you would make differently now. A strong answer gives the context and the options at the time, why the candidate chose what they did, what the consequences turned out to be, and what they now look for earlier.

How the rounds work#

Explain your thinking the way you would when pairing: state assumptions, name the browser or framework behaviour you are relying on, and say how you would measure the result.

For a regression or a bug, a pattern that works:

  1. Find out who is affected and how badly, from real-user data if you have it.
  2. Reproduce it, ideally on a device and network like your users'.
  3. Form hypotheses from the evidence and test the most likely first.
  4. Fix it, check the fix with the same measure, and add a guard such as a budget, a test or an alert.

For a design question, ask who will use the component and for what, then cover the API, the states (loading, empty, error), keyboard and screen reader behaviour, performance and how teams will upgrade. In the role-play, a product manager wants to launch before the work is ready: find out what the date really needs, and offer options that protect users, such as a smaller launch behind a feature flag.

Common mistakes#

  • Reaching for memoisation or a new state library before measuring anything.
  • Judging performance by a lab score on a fast laptop instead of real-user data on phones.
  • Reaching for ARIA before using the native HTML element that already does the job.
  • Reviewing code for style and missing what it does with user input.
  • Arguing for or against a launch without numbers or options.

A one-week prep plan#

  1. Day 1: revise rendering: server rendering, static generation, client rendering, hydration and caching.
  2. Day 2: revise accessibility: semantic HTML, keyboard and focus management, ARIA patterns for dialogs and comboboxes, WCAG 2.2 AA, and testing with a screen reader.
  3. Day 3: revise performance: Core Web Vitals, field and lab data, images, fonts, JavaScript size and third-party scripts.
  4. Day 4: take the 30-minute practice paper and read the quotes on your scorecard.
  5. Day 5: revise security and testing: XSS and how frameworks escape output, Content Security Policy, cookies and tokens, cross-site request forgery, and what makes end-to-end tests reliable.
  6. Day 6: prepare four stories: a change that broke something for users, a disagreement with design or product, a performance win with numbers and a component other people reuse.
  7. Day 7: take the 60-minute paper end to end.

When you are ready, practise the Frontend Engineer interview and get scored on UI engineering, debugging and the rest of the skills above.

Frequently asked questions#

What questions are asked in a frontend engineer interview?#

Expect questions on JavaScript and TypeScript, React or your framework, rendering strategies, state management, accessibility, web performance and security, plus a UI coding exercise and a frontend system design question in most loops. Behavioural questions cover production bugs, code reviews and disagreements with design or product.

What are Core Web Vitals?#

They are Google's three field measures of user experience: Largest Contentful Paint for loading (good is 2.5 seconds or less), Interaction to Next Paint for responsiveness (200 milliseconds or less) and Cumulative Layout Shift for visual stability (0.1 or less), each judged at the 75th percentile of real visits. Interviewers expect you to know what moves each one.

What is a frontend system design interview?#

You design a piece of a web product, such as a component library, a news feed, an autocomplete or a page, out loud. Interviewers look for clear requirements, a sensible API and state model, data fetching and caching, performance, accessibility, error handling and a plan for testing and rollout.

How should I prepare for a frontend engineer interview?#

Revise rendering, state, accessibility, performance and frontend security, then practise explaining a component design and a performance investigation out loud. Build a small accessible component from scratch to rehearse keyboard behaviour. Prepare stories about a bug you shipped and a disagreement with design, then take a timed mock interview.

How long are the practice interviews?#

There are three papers, of 30, 45 and 60 minutes, each run by an AI voice interviewer. The 30-minute paper covers accessible components, performance and a code review; the 45 and 60-minute papers add live coding in TypeScript or JavaScript, plus component design, rendering, state bugs, test reliability and a launch role-play. You can start a Frontend Engineer practice interview at any of the three lengths.

Read next

GuideDevOps Engineer

DevOps Engineer Interview Guide with Questions and Prep

How the DevOps engineer interview works, the CI/CD, cloud and reliability skills it scores, 8 practice questions with strong answers, and a 7-day prep plan.

GuideEngineering Manager

Engineering Manager Interview Guide with Questions

How the engineering manager interview works, the people, delivery and hiring skills it scores, 8 practice questions with strong answers, and a 7-day prep plan.

GuideMobile Engineer

Mobile Engineer Interview Guide for iOS and Android

How the mobile engineer interview works, the app, debugging and release skills it scores, 8 practice questions with strong answers, and a 7-day prep plan.

Practice

Say it out loud.

Reading about an interview isn't the same as doing one. Take a 30, 45 or 60-minute Frontend Engineer interview with an AI interviewer and get scored against a real rubric.

Choose an interview