Now Purchase interview experience Real time questions & tips from candidates to crack your interview

Frontend Developer

Now Purchase
upvote
share-icon
3 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
I focused on strengthening my basics with the help of ChatGPT, using it to clarify concepts and practice answering questions. In addition, I connected with a mentor to discuss the interview rounds in detail, understand the expected formats, and learn strategies to effectively answer questions within the given time frame. This combination of self-study and guided mentorship helped me approach the interviews with clarity and confidence.
Preparation
Topics: React, JavaScript, HTML&CSS, DSA
Application process
Where: Coding Ninjas Placement Cell
Eligibility: NA, (Salary package: 15 LPA)

Interview rounds

01
Round
Easy
Online Coding Interview
Duration
Interview date14 May 2025
Coding problem1

1. Filter Array of Objects by Category and Apply Discount

You are given an array of objects where each object represents an item with properties such as name, category, and price.
Your task is to:

  • Filter the array based on a given category.
  • For each filtered item, calculate a 10% discounted price.
  • Return a new array of objects containing the original details along with the discounted price.
Problem approach

I used the filter() function to select only the objects that matched the given category. Then, I applied the map() function to create a new array where the price of each object was updated by multiplying the current price with 0.9, effectively applying a 10% discount.

02
Round
Easy
Online Coding Interview
Duration
Interview date27 May 2025
Coding problem1

1. Search and Highlight Matches in an Array

Given an array of strings and a search keyword, filter the array to return only those strings that contain the search keyword. Additionally, highlight the matching portion of each string in the result.

Problem approach

I used the filter() function with an includes check to filter array items based on the search string. After filtering, I applied the map() function to return an HTML element for each item, where the matching part of the string is highlighted. To achieve the highlighting, I used indexOf() to find the match position and slice() to split the string into three parts—before, matching, and after—and then wrapped the matching part with a styled element.

03
Round
Easy
Online Coding Interview
Duration
Interview date28 May 2025
Coding problem2

1. Fibonacci Series

Given a number n, generate the Fibonacci series up to n terms. The Fibonacci series is a sequence where each number is the sum of the two preceding ones, starting from 0 and 1.

Problem approach

I first solved the problem using the recursion method to generate the Fibonacci series. Then, as an alternative approach, I implemented the solution using a loop-based method to demonstrate a more efficient way of solving the problem.

2. Store Input Data in LocalStorage using React Custom Hook

Create a custom React Hook that stores and retrieves data from localStorage. The hook should allow persisting user input from an input box so that the value remains available even after a page refresh. This ensures data persistence and promotes code reusability across components.

Problem approach

I designed a custom hook for localStorage. On initialization, it ensures that localStorage is set with a default value if none exists. I then added a setter function to update the data in localStorage and bound this setter to the input element in the main component.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Amazon
8518 views
0 comments
0 upvotes
Analytics Consultant
3 rounds | 10 problems
Interviewed by ZS
907 views
0 comments
0 upvotes
company logo
SDE - Intern
1 rounds | 3 problems
Interviewed by Amazon
3319 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2580 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Frontend Developer
3 rounds | 11 problems
Interviewed by Amdocs
2480 views
0 comments
0 upvotes