Razorpay Frontend Interview Questions

Payments. JavaScript depth and a machine coding round.

Razorpay builds payment products for businesses: the checkout that runs inside a merchant's website, the dashboard merchants manage money from, and banking and payroll tools around them. Frontend code here handles money and often runs on pages Razorpay does not control, so interviewers care about correctness, security and what happens when the network fails.

Candidates commonly describe a loop built on core JavaScript and a hands-on build round, with framework questions second. The questions below follow that shape.

Questions
15, 5 with free answers
Interview rounds
5
Last reviewed
October 2026

Razorpay frontend interview process

The usual shape of the loop. A guide to what to prepare, not a promise of what you will get.

  1. 1

    Screening

    A call or online round on JavaScript fundamentals: closures, this, promises and output-based snippets.

  2. 2

    Machine coding

    About 60 to 90 minutes building a small UI, such as a form flow or a search component. Some interviewers ask for plain JavaScript.

  3. 3

    Frontend deep dive

    Browser internals, async patterns, React rendering, security and performance, usually tied to your past work.

  4. 4

    Frontend system design

    More common for SDE 2 and above: design a widget or a dashboard end to end.

  5. 5

    Hiring manager

    Past projects, ownership and how you work with other teams.

What interviewers tend to look for

  • Writing utilities such as debounce, a promise polyfill or a deep clone from scratch.
  • Handling failure: retries, timeouts and a payment form submitted twice.
  • Security basics: XSS, CSRF and where tokens are stored.
  • Working code inside the time limit, before polish.

Your Razorpay mock interview

15 questions. Type an answer under each one and an AI reviewer scores it and tells you what you missed. Stuck on one? Ask for a hint. A free account gets 3 AI replies a day.

Your mock interview

0 of 15 answered

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15

Answer a question and your score shows up here.

JavaScript

6 questions
  1. Question 1 of 15JavaScript

    Razorpay interviewer

    What is a closure? Give a practical use for one.

  2. Question 2 of 15JavaScript

    Razorpay interviewer

    Explain the event loop. In what order do a setTimeout, a promise callback and synchronous logs run?

  3. Question 3 of 15JavaScript

    Razorpay interviewer

    Implement Promise.all.

  4. Question 4 of 15JavaScript

    Razorpay interviewer

    What is the difference between debounce and throttle? Implement debounce.

  5. Question 5 of 15JavaScript

    Razorpay interviewer

    Write a polyfill for Function.prototype.bind.

  6. Question 6 of 15JavaScript

    Razorpay interviewer

    What is the difference between a shallow and a deep copy? How would you deep clone an object?

TypeScript

1 question
  1. Question 7 of 15TypeScript

    Razorpay interviewer

    What is type narrowing? What is a discriminated union?

React

3 questions
  1. Question 8 of 15React

    Razorpay interviewer

    What makes a component re-render, and how do you cut unnecessary re-renders?

  2. Question 9 of 15React

    Razorpay interviewer

    How does useEffect work? Explain the dependency array, cleanup and the common mistakes.

  3. Question 10 of 15React

    Razorpay interviewer

    What is a custom hook? Write useDebounce.

Next.js

1 question
  1. Question 11 of 15Next.js

    Razorpay interviewer

    What is middleware in Next.js, and what should it not be used for?

CSS

1 question
  1. Question 12 of 15CSS

    Razorpay interviewer

    How does the browser decide which CSS rule wins?

Browser, performance and system design

1 question
  1. Question 13 of 15Browser, performance and system design

    Razorpay interviewer

    What are XSS and CSRF, and how do you prevent them?

Machine coding

2 questions
  1. Question 14 of 15Machine coding

    Razorpay interviewer

    Build an OTP input with one box per digit.

  2. Question 15 of 15Machine coding

    Razorpay interviewer

    Build a multi-step form with validation.

Practise for Razorpay

Reading answers is the easy half. These problems run in the browser against real tests.

Other company guides

blur