Community

Discussion Board

Anonymous interview experiences, offers and career talk from frontend engineers.

anon_005144

Netflix - Senior Software Engineer (Frontend) - Phone Screen

Netflix · Senior Software Engineer, Frontend (10 years)

Rounds

  1. Phone screen

Questions asked

  • Given a JSON object (a family tree), print the people names. Simple DFS.
    Example input:
    {"parentName": "sanhua", "children": [{"parentName": "xianluo"},{"parentName": "lihua", "children": [...]}, ...]}
    
    Output: ["sanhua", "xianluo", ...]
  • Create your own Jest. Implement a few methods to make this work:
    expect(add(2, 2)).toBe(greaterThan(3))
    
  • getVideosWithLikes (Promise orchestration):
    You have two unstable APIs (getVideos, getVideosLikes). One is critical (Videos), one is “nice-to-have” (Likes). If getVideos fails, the whole app fails. If getVideosLikes fails, you must still show the videos with null or 0 likes. Solution: just wrap getVideosLikes with try/catch.

Tips

  • For the DFS tree traversal, practice recursion and handling nested objects.
  • For the promise orchestration, Promise Deadline Guard on FrontendLead is similar.

No replies yet

Markdown supported. 20 more characters needed.