Netflix online screening round 1, poland, frontend L4\L5

There were 3 tasks, 1h

  1. Write flatten function to convert nested object into array
    I solved using dfs in 5-10 min

  2. write jest functions to make expression like
    expect(add(1,2)).toBe(greaterThen(1)) work
    task implement: expect, toBe, greaterThen
    You should know concept of currying, which was popular in jquery times.

I didn't remember how it should be done, only remembered the concept name. Spent may be 20 min to solve this with interviewers help.

  1. you have 2 async functions getVideos() and getLikes()
    task to write function showVideosWithLikes() which should call methods above and hanlde errors. if getVideos failed we show error, if getLikes failed we should still show videos.

It's simple i solved this using simple trycatch finally. Tell abount potential usage of Promise.all or allSettled.

Result: rejected
I solved 1 and 3, 2nd only with the help of interviewer.

I didn't expect such old functional programming questions.
Strange way of evaluation senior devs, i think it's just a bad luck with interviewer, or not my company.

Comments (3)