On the phone I was asked about Javascript closure, hoisting, and some problem solving/ algo question. In person I was asked to describe the output of given code, where there were timeouts and promises, how to implement debounce, and an algorithm question - finding LCA of two nodes - the nodes had reference to parent.
Senior Frontend Developer Interview Questions
1,612 senior frontend developer interview questions shared by candidates
How do you create a class in Javascrip using vanilla
What means the I in Solid?
Write a polyfill for Promise.all
Related to my previous projects.
1. Reverese string 2. Three sum 3. LRU Cache
After 3 days, I got a call, that ready for round 2 which was a codility test. I was not aware about the codility environment, so I was not able to clear this round. But questions were easy Q1. There is a nested menu data given. Show the menu when the submenu item is given, otherwise, only show the nav button. There were other requirements like: color of the menu, properties of the menu given. You need to use all the data which is given there Q2. There is an array with values name, content, rating. You need to write the logic to show star rating populated and empty stars based on the array value. Q3. Didn’t attempted, as time was not enough. But fetch data from api and show the country list and then there were scenarios on the basis of that your data will show up. Not able to recall correctly, but I guess search condition and flags of the country should also show up. When you execute your program, all the test cases should be executed. Only then, it will be considered as a completed one
Q5. What is Event Loop, explain with example
Q2. What is throttle and where to use? using the above coding question, Interviewer asked me whether we can use throttle here or not
LLD - browser.history implementation (pseudo code) HLD - survey tool (both survey creator and end user)
Viewing 791 - 800 interview questions