Member-only story
CARS24 Frontend Interview Questions with Expert Answers

Hello everyone, today we will cover some interview questions asked in Frontend Developer rounds at CARS24.
CARS24 is an Indian multinational online marketplace for used cars headquartered in Gurgaon. The company is considered among the four major organised players in the used car segment in India. Its revenue was close to $660 million in 2023.
Not a Medium Member? Read here: Article Link
If that got you excited, then let's start with interview questions for the day:
Q1. Write polyfill for debounce and throttle
Let’s understand these concepts one by one:
Debounce:
The debounce function ensures that a function is executed only once in a given time interval, even if repeated calls are made to it. It is useful when we want to limit the rate at which a function executes in a given time interval, especially when dealing with user-triggered events like typing in a search box, resizing the window, or scrolling.
For example when a user types, a search API call can go to the server on every keystroke which is resource-intensive and might confuse the user due to frequent out-of-order changes in search results. Using debouncing, we can ensure that…