BY EXPERIENCE

Interview Questions by Experience

Study prompts grouped by the reasoning expected at different career stages.

See how interview questions change for freshers, mid-level engineers and experienced professionals, then practice the level that matches your target role.

Freshers and early career

Expect fundamentals, a project walkthrough, and HR questions about why you want the role. Be ready to explain one project you actually built: what it did, which parts you wrote, and what you would change.

  • JavaScript basics, arrays, async and the event loop at an introductory depth
  • One framework you used, such as React or Node.js
  • A simple database question: tables, keys or a basic query
  • Tell me about yourself, strengths and a college or internship project

Practice question: What does a JavaScript closure keep?

A closure is a function together with access to bindings from the lexical scope where it was created. The returned function below can still update count after makeCounter has finished.

function makeCounter() {
  let count = 0;
  return () => ++count;
}
const next = makeCounter();
next(); // 1
next(); // 2

A useful follow-up is to explain that each call to makeCounter creates a separate count binding. Do not say that const makes an object deeply immutable or that let is function-scoped.

Practice question: What is the difference between a primary key and a foreign key?

A primary key identifies a row in its own table. A foreign key references a key in another table and lets the database enforce a relationship. For example, orders.customer_id can reference customers.id; this prevents an order from pointing to a customer that does not exist.

About 3–5 years

Interviewers expect you to connect concepts to work you shipped. Node.js questions often cover the event loop, APIs and debugging. React questions cover state, rendering and data fetching. You should also handle a behavioral story about ownership.

Practice question: How do you prevent an older API response from replacing newer search results?

Cancel the previous request when the search term changes, or ignore its result after cleanup. Also handle non-success HTTP responses and show a useful error state. This tests practical asynchronous reasoning rather than recall of a framework hook.

const controller = new AbortController();
fetch(url, { signal: controller.signal })
  .then((response) => {
    if (!response.ok) throw new Error('Request failed');
    return response.json();
  });
// On cleanup or a newer search:
controller.abort();

A good follow-up is to discuss caching, request deduplication, and how the interface represents loading, empty, and failure states.

Practice question: Why might you add a database index, and what does it cost?

An index can reduce the work needed to find or order rows, but it uses storage and adds write overhead. Use an execution plan and representative measurements to confirm that the index supports the actual predicate and ordering.

Experienced professionals

Senior rounds add system design, trade-offs, mentoring and production failure. You may still get a core language question, but the follow-up is about what breaks at scale and how you would measure the fix.

Practice question: How would you make a queued operation safe to retry?

Give each logical operation a stable idempotency key and persist its outcome so duplicate deliveries do not repeat a side effect. Bound retries, separate transient from permanent failures, and expose queue age and retry counts. State the consistency guarantees and how operators recover a failed job.

Practice question: A service's p95 latency doubled after a release. What do you do first?

Confirm the change in telemetry, compare affected routes and dependencies, and inspect traces, error rates, saturation, and event-loop or database wait metrics. Roll back or mitigate if users are affected; then reproduce the bottleneck and validate a targeted fix under representative load. Explain how you would communicate impact and verify recovery.

Use the System Design Interview guide for architecture practice, and the technical mock interview for timed explanations.

Where to practice

Choose a technology page for detailed explanations and examples. Use mock interview practice as an optional rehearsal, not as a substitute for hands-on work or feedback from people.

  • Node.js Interview Questions
  • JavaScript Interview Questions
  • React Interview Questions
  • SQL Interview Questions
  • System Design Interview Questions
  • Interview Guides

Frequently asked questions

Are fresher and experienced interview questions the same?

Topics can overlap, but expected depth changes. Early-career candidates should explain fundamentals and their own projects; experienced candidates should connect trade-offs to production behavior and measurable outcomes.

All guides · HireReadyAI home

Start Free Mock Interview · Mock Interview hub