Kotak 811 Interview experience – Frontend

The interview lasted around 1 hour and the interviewer is from the BarRaiser. Questions that were asked in Kotak 811 are of medium level.

In the one-hour timeframe, the interviewer asked 2 questions one was on Javascript, and the other question was on React Native as I am being interviewed for a react native role.

Question 1 on Javascript:

Flatten-Nested Objects in JavaScript, Let’s consider the following nested object representing user data:

const user = {
  name: "Rowdy Coders",
  address: {
    primary: {
      house: "109",
      street: {
        main: 21,
        cross: ["32", "1"],
      },
    },
  },
};


Our goal is to flatten this nested object into a simpler, more manageable format as below.

{
  user_name: "Rowdy Coders",
  user_address_primary_house: "109",
  user_address_primary_street_main:21,
  user_address_primary_street_cross: ["32", "1"],
}


Here is the link to the blog post: Flatten nested objects in Javascript


Flatten nested objects in Javascript

Question 2 on Javascript:

Building an N X N Grid of Boxes in React, You will be given a number, and need to prepare N X N boxes on the screen, clicking on it should show a blue colour. While Preparing we need to create a single box first then we need to build the N X N Box grid. 

kotak interview NXN Boxes


Here is the link to the blog post: Building NxN grid of boxes using React