Current Company - One of the Big 4
College - Tier 2 CSE
YOE - 1 year 10 months
Mode of applying - Through linkedin, recruited reached out 2 days later
First round -
-
Flatten an array in this way -
Input - [1,2,[3,[4],5],6,[7]]
Output - [1,2,6,7,3,5,4]I solved this but took some time.
-
Output based question
var obj = {
value: 6,
print: function(){
console.log(this.value);
}
}
What is the output of calling print function from the object?Follow up question - how to set context as the object and call this function later?
Answer - by using bind -
After this I was asked to write polyfill of bind
I wrote it instantly
-
Write a program for something like redux useselector and dispatch, something like pubsub.
I was not aware of this at that point so I couldn't solve this.
-
Explain all css position types (static, sticky, absolute, relative, fixed)
I explained all the positions but messed up absolute position definitation a little bit
-
How to set different width for each flex item
Gave the answer for this as well
Verdict - Rejected


