· 15 questions · Questions from the MiraiHire question bank; tips written by the MiraiHire team.
Technical questions
What is the difference between let, const and var in JavaScript?
FoundationalWhat the interviewer is looking for: Cover scope (block vs function), hoisting and reassignment, then say which you use by default and why.
What problems does TypeScript solve compared with plain JavaScript?
FoundationalWhat 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.
What are props and state in React, and how do they differ?
FoundationalWhat 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.
How do you avoid unnecessary re-renders in a React component tree?
AppliedWhat the interviewer is looking for: Start with measuring (React Profiler), then explain lifting state correctly, memo, useMemo/useCallback, and splitting context.
What is middleware in an Express or Node.js server?
FoundationalWhat 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.
How do you handle errors in asynchronous Node.js code so none are lost?
AppliedWhat the interviewer is looking for: Mention async/await with try/catch, always returning or awaiting promises, a central error handler, and logging unhandled rejections.
What is the difference between INNER JOIN and LEFT JOIN?
FoundationalWhat 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.
How do indexes speed up queries, and when can they slow things down?
AppliedWhat 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.
What is the difference between REST and GraphQL?
FoundationalWhat 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.
How do you design an API so that a retried request does not create duplicates?
AdvancedWhat 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.
What is the difference between a Docker image and a container?
FoundationalWhat 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.
What is the difference between git merge and git rebase?
FoundationalWhat 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
Tell me about a project you are proud of. What was your part in it?
FoundationalWhat 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
A deadline is at risk because of a problem you found late. What do you do?
AppliedWhat 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.
You are asked to deliver in half the planned time. How do you decide what to cut?
AdvancedWhat 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