What to prepare for FB phone screen

Amazon / Eng¯\_(•.•)_/
Aug 19, 2018 13 Comments

I have scheduled 45 minutes phone screen for frontend engineer @Facebook. What to except? What to prepare? Will they ask leetcode or just vanilla js with some design?

comments

Want to comment? LOG IN or SIGN UP
TOP 13 Comments
  • PayPal / Engrockerzone
    JavaScript. Mostly implementing a library function and one HTML CSS js design
    Aug 19, 201810
    • Amazon
      nizzle

      Amazon

      PRE
      Google, Uber
      nizzlemore
      I was actually asked to implement JavaScripts setTimeout function during a Mozilla interview a few years ago.
      Aug 19, 2018
    • Facebook Dodel
      Lol
      Aug 19, 2018
    • New / EngaYLx06
      I was asked to implement JSON.stringify() at both Google and Facebook.
      Aug 20, 2018
    • Glassdoor kko
      @nizzle how do you do this?
      Aug 20, 2018
    • Amazon cnnm16
      Implementing setTimeout in js/browser sounds impossible since there are no other scheduling primatives.
      Aug 20, 2018
    • PayPal / Engrockerzone
      Aug 20, 2018
    • Amazon cnnm16
      Well hell I guess slapping your own busywait / blocking event loop on top sort of works, but that's not really what setTimeout does so I didn't consider that a valid implementation. The non-blocking version on that page depends on a magic "sleep" function which appears to defer to the JVM's Thread.sleep in the example and that seems to violate the spirit of the question also. If you're allowed to dive into JVM there are much simpler implementations than that one

      Busywait must be what they were looking for
      Aug 20, 2018
    • Amazon
      nizzle

      Amazon

      PRE
      Google, Uber
      nizzlemore
      Sorry it was not in javascript, it was for the js runtime in C++. The general idea is to maintain a pq of jobs to run - and setTimeout guarantees that the scheduled job will be run AFTER x milliseconds (not necessarily at the x ms mark), and the main interpreter loop simply dispatches eligible jobs to workers continuously.
      Aug 20, 2018
    • Amazon cnnm16
      That makes way more sense
      Aug 20, 2018
    • Glassdoor kko
      ah then it is just a concurrency problem. makes a lot more sense
      Aug 20, 2018
  • Postmates ..🚪🚓💥..
    Leetcode. Search for recent interview experiences.
    Aug 19, 20180
  • Yahoo Dumbdumb
    I was asked to implement throttle/debounce
    Aug 20, 20180

Join verified employees in our anonymous social network!Download the app!

close