What do frontend engineer interviews ask?
A frontend engineer interview checks that you understand what the browser is doing under your framework. Expect JavaScript fundamentals such as closures and the event loop, CSS layout questions, a small component to build in a framework like React, questions on accessibility and page speed, and a conversation about a UI you built. Interviewers watch whether you can reason about why a page behaves as it does, not whether you remember a library API.
Frontend Engineer interview questions, by round
19 questions across 4 rounds.
Recruiter and background screen
Confirms what you have shipped to a real browser and what you can explain in depth.
- Show me or describe the interface you are proudest of building. What was hard about it?
- Which framework have you used most, and what would you miss if you had to build without it?
- Tell me about a time you disagreed with a designer about how something should work.
- How do you keep up with changes in a field where the tools keep shifting?
JavaScript and browser fundamentals
Short questions on the language and platform that tell the interviewer how deep your understanding goes.
- What is a closure, and when have you used one on purpose?
- Explain the event loop. In what order do a promise callback and a setTimeout of zero run?
- What is the difference between var, let and const?
- What is event delegation, and why is it useful for a long list?
- Explain how this behaves in a regular function compared with an arrow function.
- What happens in the browser between receiving HTML and showing pixels?
CSS, accessibility and performance
Checks that the interfaces you build are usable by everyone and do not feel slow.
- Center an element both ways in its parent. Show two different ways and say when each is appropriate.
- What is the difference between flexbox and grid, and how do you choose?
- How would you make a custom dropdown usable with only a keyboard?
- A page feels slow to load. How would you find out why?
- What is the difference between debouncing and throttling, and when would you use each?
Build a component
A small live coding task in a framework. The first working version matters less than the edge cases you raise.
- Build a search input that fetches results as the user types.
- Build a to-do list where items can be added, completed and removed.
- Why does a React component re-render, and how would you stop an unnecessary one?
- Where would you keep state that two sibling components both need?
Sample answers
Illustrative answers written for this guide, not transcripts of real candidates.
Explain the event loop. In what order do a promise callback and a setTimeout of zero run?
JavaScript runs one thing at a time on the call stack. When it hits something asynchronous, like a timer or a network request, the browser handles it outside the stack and queues a callback when it is ready. The event loop moves a callback onto the stack only when the stack is empty. There are two queues that matter here: promise callbacks go in the microtask queue, and timers go in the task queue. After each piece of code finishes, all microtasks run before the next task. So if I log "start", set a zero timer, resolve a promise and log "end", the order is start, end, the promise callback, then the timer. The zero in the timer does not mean immediately, it means as soon as the stack and microtasks are clear.
Why it scores: Technical: gets the microtask versus task distinction right and gives the exact order. Communication: explains from the stack outward with a small example instead of reciting a definition. Problem-Solving: connects it to what a developer would see.
Build a search input that fetches results as the user types.
I would start with a controlled input and a piece of state for the query. Sending a request on every keystroke wastes requests and can show wrong results, so I would debounce: wait a short moment after the user stops typing before fetching. The second problem is out-of-order responses. If the user types "ca" and then "cat", the answer for "ca" can arrive last and overwrite the right one. I would cancel the previous request with an abort controller when a new one starts, or ignore a response that does not match the current query. I would show a loading state, an empty state for no results and an error state with a retry. For accessibility I would label the input and announce the number of results to a screen reader. I would put the fetching in a small custom hook so it can be tested without the interface.
Why it scores: Problem-Solving: names the race between responses, the bug most first versions have. Code Quality: separates fetching logic into a hook and covers loading, empty and error states. Technical: includes accessibility without being asked.
A page feels slow to load. How would you find out why?
I would measure before guessing. I would open the performance panel and a network trace with the cache disabled and throttled to a slow connection, because that is closer to what many users have. Then I look at three things. How big is what we send: large images, an unminified bundle, or a library imported for one function. What blocks the first paint: scripts or stylesheets loaded in the head that the page does not need yet. And what happens after load: a long task that freezes the page. Each points to a different fix, such as resizing images and using a modern format, splitting the bundle so each page loads only its own code, or deferring scripts. I would change one thing, measure again and keep the change only if the numbers moved.
Why it scores: Problem-Solving: measures first and tests one change at a time. Technical: separates payload size, render blocking and runtime cost. Communication: organizes the answer into three clear places to look.
Tell me about a time you disagreed with a designer about how something should work.
On a course project the designer wanted a modal for every confirmation. I thought it would interrupt people on a form they were filling in. Instead of arguing I built both in an afternoon and put them in front of three classmates. Two of them closed the modal without reading it. We agreed to save the modal for actions that cannot be undone, such as deleting a project, and show a brief inline message with an undo link for everything else. I learned that a working prototype ends a taste argument quickly, and that the designer had a good reason I had not asked about: she wanted to prevent accidental deletes.
Why it scores: Behavioral: resolves a disagreement with evidence, not rank, and credits the other person’s reasoning. Problem-Solving: tests both options cheaply. Communication: states what changed in the decision and what was learned.
What a Frontend Engineer answer is scored on
- Problem-Solving
- Anticipating the failures of a first version, such as races and empty states, and measuring a problem before fixing it.
- Code Quality
- Small components with a clear job, state kept in the right place, readable names and logic that can be tested apart from the interface.
- Technical
- JavaScript and browser fundamentals, CSS layout, accessibility and an accurate model of how the framework renders.
- Communication
- Thinking aloud while you build, explaining a concept with an example, and talking with designers in terms of the user.
- Behavioral
- Working through disagreement with designers, taking review feedback and owning a bug that reached users.
These are the five dimensions every interview rolls up to. The full rubric and its measured limits are on the scoring page.
How a Lifelike Frontend Engineer interview is scored
What the report shows you

How to prepare
- Be able to explain closures, the event loop, this and the prototype chain without notes, each with a small example.
- Rebuild a search box, a modal and an accordion without a component library, then add keyboard support.
- Learn what causes a React component to render and the few tools that control it, so you can explain more than "use memo".
- Open the network and performance panels on a site you like and practise reading them aloud.
- Prepare to demo one project live: the decisions, a trade-off you made and the first thing you would improve.
Frontend Engineer interviews: common questions
Do I need to know React for a frontend engineer interview?
Many roles use it, so know one framework well, but the questions that decide the result are usually about JavaScript, the browser and CSS. If the posting names another framework, learn how its model differs rather than memorizing syntax.
How is this different from a full-stack interview?
A frontend interview goes deeper on browser behavior, layout, accessibility and performance and lighter on databases and server design. The overlap is JavaScript and calling APIs.
What if I get stuck on the live coding task?
Say what you are trying, get a simple version working and then improve it. Raising the edge cases you have not handled yet, such as loading and error states, shows judgment even if you run out of time.
How do I practise this interview?
Run a mock interview for the Frontend Engineer role and answer out loud. The feedback report scores each answer on the five dimensions above and shows the transcript beside the score.