Rippling | SDE - 1 | Frontend

Anonymous User
5170
May 17, 2022
May 17, 2022

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 -

  1. 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.

  2. 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

  3. After this I was asked to write polyfill of bind

    I wrote it instantly

  4. 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.

  5. Explain all css position types (static, sticky, absolute, relative, fixed)

    I explained all the positions but messed up absolute position definitation a little bit

  6. How to set different width for each flex item

    Gave the answer for this as well

Verdict - Rejected

Comments (7)