Frontend developer interview: questions, answers, and preparation

What is asked in a frontend interview, how to answer about React, CSS, and performance, and how to rehearse the conversation with an AI trainer.

8 min read
Frontend developer interview: questions, answers, and preparation

A frontend interview differs from other technical interviews: here they test not only API knowledge but also how you think about the user. The same component can be written in three ways — and the question “why exactly this way” weighs more than the implementation itself.

Frontend developer interview
In a frontend interview, they test your thought process, not just the result.

What a frontend interview consists of

Usually there are four stages, and each requires its own preparation:

StageWhat they assessHow to prepare
Recruiter screeningexperience, motivation, salary expectationsthree sentences about yourself + salary range
Technical interviewJavaScript, CSS, browser, frameworkreview of the questions below
Live codinghow you write code and reasontalk through your solution process out loud
System design / architecturehow you design the interface and statestructure your answer: context → options → choice

Which questions are asked most often

1. “Tell us about a project you’re proud of”

This is where they check your role, not the scale. Bad: “we rewrote the frontend in React.” Good: “I was responsible for the transition to the new API — I had to maintain compatibility; here’s how I did it and what it delivered in metrics.”

2. About JavaScript and the browser

Typical set: event loop, promises vs async/await, event bubbling, delegation, `this`, closures, differences between `var`/`let`/`const`, the difference between copying by reference and by value. They expect not definitions but an example of use.

3. About CSS and layout

Flexbox vs Grid, selector specificity, how `position: sticky` works, what margin collapse is, how responsive design is done without media queries. They test the ability to explain, not to remember syntax.

4. About React (or your framework)

The difference between state and props, why keys are needed in lists, what a re-render is and how to avoid it, `useEffect` and its dependencies, memoization, context vs a state manager. They often ask to find a bug in a code snippet.

5. About performance

What Core Web Vitals are, how to measure LCP and CLS, what to do with extra JS in the bundle, why code splitting and lazy loading are needed, how caching works. Here it is important to name specific tools: Lighthouse, Performance API, Chrome DevTools.

6. About accessibility and UX

Semantic tags, ARIA, focus and keyboard navigation, contrast. A screening question for many candidates.

7. “How do you work with designs in Figma?”

They check whether you can see states (e.g., hover, disabled, no data), not just the ideal mockup.

Preparation for a technical frontend interview
It’s better to prepare for technical questions out loud: on paper the answer seems coherent, but in speech it falls apart.

How to answer so that your response sounds professional

The same structure works for technical questions as for behavioral ones: thesis → rationale → example → limitation. The last step is most often forgotten, yet it is precisely this that distinguishes a senior from a middle.

«For this case I would use list virtualization. The reason is that the DOM can't handle ten thousand nodes: scrolling starts to stutter. In a past project we cut time to interactive by about three times this way. Limitation: virtualization works poorly with variable row heights — then measurement is needed».

Note: there is a solution, a reason, a concrete result, and an honest boundary of applicability. Such an answer cannot be «memorized» — but it can be rehearsed.

What to do during live coding

Weekly preparation plan

DayWhat to doTime
1Write down your 5 projects: role, task, result in numbers40 min
2Go through the 7 topics above and mark where the answer does not add up40 min
3Answer 10 questions aloud, record yourself on a voice recorder30 min
4Review the recording: where the pauses are, where structure is lost20 min
5Run a full dialogue with the AI trainer for your vacancy30 min
6–7Repeat problematic answers, repeat the run20 min
Frontend interview practice with an AI coach
Rehearsing the full conversation reveals what you can't see when reading questions.

What to expect and what not to expect from preparation

What changes: the speed of assembling an answer, the ability to keep structure on an unexpected question, the skill of naming the limitation of your solution. This is noticed after just three or four runs.

What won't happen: preparation doesn't replace knowledge of the technology. If you don't understand the event loop, a beautiful answer structure won't help. First comes knowledge, then the skill of presenting it.

Frequently asked questions

How much time does it take to prepare for a frontend interview?

If your technical foundation is solid, a week of 30–40 minutes a day: structuring your answers, saying them out loud, and one full run-through of the dialogue. If your foundation is weak on a specific topic (for example, the event loop or the CSS cascade), close that gap first; otherwise, answer structure won't help.

Are algorithms asked about in frontend interviews?

It depends on the company: product teams more often give practical tasks (write a component, debug an issue), while large tech companies give classic algorithms. Ask the recruiter about the format in advance — it's a reasonable question.

What should I do if I don't know the answer to a technical question?

Say so directly and show how you would find out: “I haven't worked with this directly, but the logic is similar to X — I would check the documentation and a prototype.” This is valued higher than a made-up answer: the interviewer can almost always tell when a candidate is floundering.

Should I prepare for live coding separately?

Yes, it is a separate skill. Practice saying your solution out loud, writing code in an editor without autocomplete, and starting with clarifying questions. Even a confident developer gets lost in the first session without this practice.

How should you answer questions about salary expectations?

Give a range rather than a single number, and base it on the market. How to do this without awkwardness is covered in the article salary negotiations.

How can you practice interviewing with AI?

Describe the situation in one phrase — “interview for a frontend developer, React, three years of experience” — and go through the dialogue in the simulator. The coach will ask questions about your role and review your answers after the conversation.

What next

Start with five projects: role, task, result in numbers. Then run the full dialogue — open HintMeTalk AI, “Coach” mode, describe the situation. After the review, it will be clear which answers fall short: usually it’s two or three out of ten, and those are the ones that decide the outcome.

General principles for preparing for any interview — in the article interview preparation. And if a conversation about money is coming up — salary negotiations.

Practise this skill in HintMeTalk AI

Open the app

Sources