Full-stack developer interview questions

A full-stack developer interview mixes frontend and backend: JavaScript and TypeScript, React, Node.js, SQL, API design, Docker and Git, plus delivery under pressure. Interviewers want to see that you can follow a feature from the database to the screen and make sensible trade-offs. Prepare examples that show end-to-end ownership of a feature.

· 15 questions · Questions from the MiraiHire question bank; tips written by the MiraiHire team.

Technical questions

  1. What is the difference between let, const and var in JavaScript?

    Foundational

    What the interviewer is looking for: Cover scope (block vs function), hoisting and reassignment, then say which you use by default and why.

  2. What problems does TypeScript solve compared with plain JavaScript?

    Foundational

    What the interviewer is looking for: Talk about catching errors before runtime, safer refactoring and editor help, and mention the cost: a build step and learning curve.

  3. What are props and state in React, and how do they differ?

    Foundational

    What the interviewer is looking for: Props come from the parent and are read-only; state belongs to the component and changes trigger a re-render. A small example helps.

  4. How do you avoid unnecessary re-renders in a React component tree?

    Applied

    What the interviewer is looking for: Start with measuring (React Profiler), then explain lifting state correctly, memo, useMemo/useCallback, and splitting context.

  5. What is middleware in an Express or Node.js server?

    Foundational

    What the interviewer is looking for: Describe a function in the request pipeline that can read, change or stop a request, with examples such as logging or authentication.

  6. How do you handle errors in asynchronous Node.js code so none are lost?

    Applied

    What the interviewer is looking for: Mention async/await with try/catch, always returning or awaiting promises, a central error handler, and logging unhandled rejections.

  7. What is the difference between INNER JOIN and LEFT JOIN?

    Foundational

    What the interviewer is looking for: INNER JOIN keeps only matching rows; LEFT JOIN keeps every row from the left table. A two-table example makes it clear.

  8. How do indexes speed up queries, and when can they slow things down?

    Applied

    What the interviewer is looking for: Explain lookups without a full scan, then the trade-offs: slower writes, extra storage and indexes the planner never uses.

  9. What is the difference between REST and GraphQL?

    Foundational

    What the interviewer is looking for: REST uses resources and HTTP methods; GraphQL lets the client ask for exactly the fields it needs. Compare caching and complexity.

  10. How do you design an API so that a retried request does not create duplicates?

    Advanced

    What the interviewer is looking for: Explain idempotency keys stored with the result, safe HTTP methods, and database unique constraints as a last line of defence.

  11. What is the difference between a Docker image and a container?

    Foundational

    What the interviewer is looking for: An image is the read-only template; a container is a running instance of it. Mention layers and why images are reusable.

  12. What is the difference between git merge and git rebase?

    Foundational

    What the interviewer is looking for: Merge keeps history with a merge commit; rebase rewrites it into a straight line. Say when you avoid rebasing shared branches.

Behavioural questions

  1. Tell me about a project you are proud of. What was your part in it?

    Foundational

    What the interviewer is looking for: Use STAR and focus on your own actions with "I", then the result with a number if you can.

Answering behavioural questions

Use STAR: the Situation, your Task, the Actions you took and the Result, ideally with a number. Paste your answer into the free STAR checker to see which part is missing.

Check my answer with STAR →

Situational questions

  1. A deadline is at risk because of a problem you found late. What do you do?

    Applied

    What the interviewer is looking for: Raise it early with facts and options (cut scope, add help, move the date), rather than hoping to catch up silently.

  2. You are asked to deliver in half the planned time. How do you decide what to cut?

    Advanced

    What the interviewer is looking for: Separate must-haves from nice-to-haves with the stakeholder, protect quality and safety, and state the trade-offs clearly.

Practise these questions

MiraiHire gives you interview practice sets from this question bank, by text or voice, with feedback. Free to start.

Start practising free