Technical skill gets you the interview. Behavioral questions decide whether a team wants to work with you. They sound like "Tell me about a time when...", and many strong developers answer them badly because they never prepare. This guide shows you a simple structure and sample answers you can adapt to your own experience.
1. What is the STAR method?
STAR is a way to tell a short, clear story:
- Situation: the context, in one or two sentences.
- Task: what you were responsible for.
- Action: what you did, step by step. This is the longest part.
- Result: the outcome, with numbers if you have them, and what you learned.
Keep each answer to about two minutes. Use "I", not "we", for the actions you took, because the interviewer is assessing you.
2. How do you prepare stories before the interview?
Write down five or six real stories from work, university or personal projects, and make each one flexible enough to answer several questions: a hard bug, a disagreement, a missed deadline, something you improved, something you learned quickly, and a time you helped someone. Practise saying them out loud. Do not memorise word for word, because it sounds robotic.
3. Tell me about yourself.
Give a short professional summary, not your life story: who you are now, what you have worked on, and why this role. A good structure is present, past, future.
Sample: "I'm a frontend developer who works mostly with React and Next.js. Over the last two years I built a dashboard used by about 300 customers and led the move from plain JavaScript to TypeScript. I enjoy making interfaces fast and accessible, which is why this role caught my attention."
4. Tell me about a time you disagreed with a teammate.
They want to see maturity: you listen, use facts and focus on the product, not on winning.
Sample: "(S) A teammate wanted to build our own date picker, and I thought a library would be faster. (T) We needed a decision that week. (A) I listed the requirements, compared the two options for accessibility, time and bundle size, and shared it with both of us in a short meeting. We agreed on the library for the first release, and a custom component only if we hit limits. (R) We shipped three days earlier, and we have not needed a custom one. I learned that putting the trade-offs on paper turns an argument into a decision."
5. Tell me about a mistake you made.
Choose a real, small-to-medium mistake, own it, and focus on what you changed afterwards. Do not blame others and do not pretend you have never made one.
Sample: "I once pushed a change that broke the checkout on mobile because I only tested on desktop. I rolled it back within 15 minutes, told the team what happened and wrote a short summary. After that, I added a mobile check to our pull request template and a Playwright test for the checkout. We have not had a similar issue since."
6. Tell me about a time you worked under a tight deadline.
Show that you prioritise, communicate and protect quality.
Sample: "(S) A launch date moved forward by a week. (A) I split the work into must-have and nice-to-have, agreed the list with the product manager, cut two animations and an admin screen, and focused on the core flow with tests. I gave short daily updates. (R) We launched on time with no critical bugs, and we added the cut items in the next sprint."
7. How do you handle feedback in code review?
Say that you treat review as shared ownership of quality. You ask questions when you do not understand, you do not take comments personally, and you explain your choices without getting defensive. Add that you also review others' code kindly: you comment on the code, not the person, explain why, and suggest alternatives.
8. Tell me about a time you improved performance or quality.
A strong answer has a measurement before and after.
Sample: "Our product page had an LCP of 4.2 seconds on mobile. I found that the hero image was large and loaded late, so I resized it, switched to WebP and prioritised it, and moved a heavy script to load after interaction. LCP dropped to 2.1 seconds and the bounce rate on that page fell. I now check Lighthouse in every pull request that touches that page."
9. How do you handle unclear requirements?
Say that you ask questions early, write down your assumptions, show a small prototype or a screenshot, and confirm before building too much. Give an example of when a short conversation saved you from building the wrong thing.
10. How do you stay up to date and keep learning?
Be specific and honest: the docs and release notes of the tools you use, one or two newsletters or blogs, side projects where you try new things, and sharing what you learn with your team. Name something recent you learned and used, because it proves it is real.
11. Why do you want to work here?
Do your homework. Mention something specific about the product, the tech stack, the team or the mission, and connect it to your experience. Avoid generic answers such as "it is a great company".
12. What questions should you ask the interviewer?
Asking good questions shows interest and judgment. Examples:
- What does a typical week look like for this team?
- How do you handle code review, testing and deployment?
- How do designers and developers work together?
- How do you measure success for this role in the first six months?
- What is the biggest challenge the team is facing right now?
13. What should you avoid in a behavioral interview?
Do not criticise past employers or teammates, do not give vague answers with no example, do not say "we" for everything, and do not ramble. If you do not have the exact experience, be honest, and describe how you would approach it and a similar situation you have handled.
Quick revision checklist
- Prepare five or six real stories and use STAR.
- Keep answers to about two minutes and focus on your own actions.
- Include numbers and what you learned.
- Own mistakes, and stay calm and fair when you describe conflict.
- Prepare thoughtful questions for the interviewer.
Related resources
Sponsored
Keep practicing
Follow the topic-by-topic checklist and turn what you read into interview-ready answers.
Keep reading
XSS, CSRF and CORS explained: frontend security interview questions
The difference between XSS, CSRF and CORS, how React protects you, where to store tokens, what a preflight request is and how to fix the common CORS error.
8 min read · Oct 31, 2026
FrontendWeb accessibility (a11y) interview questions and answers (2026)
Semantic HTML, keyboard access, ARIA, color contrast, focus management and testing: the accessibility questions frontend interviewers ask, with clear answers and code.
9 min read · Oct 31, 2026
