Frontend Engineer Interview Prep
OverviewBuilds and owns accessible, performant browser applications, from component APIs and state flow to rendering behavior and production reliability.
Curated: · Written: · Reviewed:
- Interview Q&A
- 102
- Practice MCQs
- 105
Top 100 Frontend Engineer Interview Questions and Answers
The questions most likely to actually be asked, ranked by likelihood, with pro-level model answers.102 Q&ATop 100 Frontend Engineer Practice MCQs
Quick multiple-choice self-checks covering the same high-value ground, with an explanation for every answer.105 MCQsThe role in one line
You build and own the browser application users touch: component APIs, state flow, rendering behaviour and production reliability, with accessibility and performance treated as requirements rather than polish.
The interview loop
| Round | What it scores |
|---|---|
| Recruiter screen | Scope fit, seniority signals, timeline |
| JavaScript and UI coding | Event handling, async correctness, state updates, edge cases named before coding |
| React or component design | Component API, state ownership, composition, loading and error states |
| Frontend system design | Requirements, data flow, caching, rendering strategy, test seams, trade-offs |
| Accessibility and performance review | Semantic HTML, keyboard and focus, diagnosis of Core Web Vitals from evidence |
| Behavioural | STAR stories with measured outcomes and what you would change |
Round names and weighting vary by company; confirm the loop with the recruiter.
Five must-know areas
- Event loop ordering: what runs before a paint, and why a long task delays input.
- Async races: stale responses, cancellation with AbortController, latest-request-wins.
- Closures and this: how captured state goes stale in callbacks and effects.
- Rendering cost: why a state change re-renders a subtree, and when memoisation helps or hurts.
- Browser quality signals: LCP, INP and CLS, plus focus order and semantic markup.
Numbers and formulas to have ready
- Good Core Web Vitals thresholds, judged at the 75th percentile of field data: LCP 2.5 s or less, INP 200 ms or less, CLS 0.1 or less.
- Frame budget at 60 Hz, which is the time left for script, style, layout and paint in one frame:
- INP is reported per interaction and is close to the worst one on the page, so it is broken into phases:
- Debounce wait: there is no universal value. Derive it from typing cadence and your backend p95 latency, and say which you measured.
Reference architecture
The diagram shows the path from an input event to committed DOM for a search-style feature.
- The state owner is the only component that writes the query; children receive props.
- Each new request aborts the previous one, so a late response cannot overwrite newer state.
- Memoisation sits on leaves that receive stable props, not on the whole tree.
Strong vs weak answers
| Question | Strong answer sounds like | Weak answer sounds like |
|---|---|---|
| Out-of-order results | Abort the previous request, or ignore responses whose query no longer matches the latest input. | Add a loading spinner. |
| Fetch in an effect | Cleanup sets a cancelled flag or aborts, and the dependency list is the query. | Put it in useEffect with an empty array. |
| Debounce vs throttle | Debounce waits for quiet, so it suits search. Throttle caps the rate, so it suits scroll or resize. | They are the same thing with different names. |
| 1,000 rows | Virtualise the list, keep one delegated listener, and measure INP before and after. | Use React.memo everywhere. |
| Memoisation | Memoise when the computation is expensive and the inputs are stable, and measure it. | Memoise everything to be safe. |
Interview tips
- Restate the requirement and its constraints before you propose a design.
- Name the edge case you are guarding against before you write the code.
- Back every performance claim with a metric and the tool that produced it.
- Cover keyboard, focus and screen reader behaviour in every component you design.
- Say what you would not build yet and why.
Last-week checklist:
- Rewrite a fetch-on-input component with cancellation from memory.
- Explain the event loop order of a promise, a zero-delay timeout and a paint, aloud.
- Re-check the three Core Web Vitals thresholds and their percentile.
- Prepare two STAR stories with a number in each result.
- Work through the Top 100 questions aloud, then review concepts where your explanation broke down.
Feedback on this overview
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.