Tip 1 : For frontend roles, apart from DSA be prepared with JS fundamentals, polyfills, code execution and memory management in js.
Tip 2 : Prepare Machine Coding Questions and JS interview questions like flatten a nested object or array, infinite currying etc.
Tip 3 : Be confident while interviewing, try to talk and explain the approach first, before implementation. Do not directly jump to code.
Tip 1 : Have your resume very concise like a one page resume, and for frontend roles have some projects with their Github and live url as well.
Tip 2 : Mention your coding profiles with their links in the resume.
It was a technical round. The interview happened on Interview Hector platform. It consisted of 1 DSA question and 2 JS based problems.
Write polyfills for Call, Apply and Bind.
I explained how these methods work in javascript and wrote my own implementation of it by explicitly attaching the 'this' to the calling context.
Given a deeply nested array, write a function to flatten this array.Ex - I/P - [1,2,[3,4,5],[6,[7,[8],9],10],11,12]O/P - [1,2,3,4,5,6,7,8,9,10,11,12]
I used recursion to recursively flatted the nested arrays and then concat all the flatted array together and returned it in the O/P.



You need to change in the given array/list itself. Hence, no need to return or print anything.
I used the Dutch Flag Algorithm to solve the question.
It was from 1 to 2 pm. I briefly introduced myself. He asked me about my previous experience and the tech stack that I am working on and the proceeded on with the interview. He asked me about Hoisting, Closures, How closure work with example, How to optimise network calling using Debouncing and Throttling and which one to use in which scenarios.
He then asked me about Prototypes and Prototypical Inheritance. How asynchronous Javascript works. Then he moved to react and asked some basic questions like Virtual DOM, Lifecycle methods and Hooks. After that he gave me a machine coding question.
Gave me a boileplate React sandbox and asked me to write a React App which beuatifies the JSON response. (Like the JSON parse or JSONVue chrome extension). It should be able to beautify deeply nested JSON as well.
There were lot of edge cases to consider, In case of string or number values, it was very straight forward, but if the value is an array or if the value is an JSON object itself then I used recursive approach to beautify the nested JSON object.
It was a Technical cum Culture Fit round with the CTO. The CTO asked me about my experiences and the projects that I have worked on. And he asked me some questions.
Why am I switching the company just after an year?
What are your career goals?
What are you looking for in your next role ?

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?