New Grad Frontend Interview Pre-screen Facebook

  • What are call and apply in JavaScript
  • What is a closure in JavaScript
  • What are the differences between var and const
  • What is event delegation and what are its benefits
  • Describe the this keyword and what is its behavior
  • How can we detect an image been fully loaded in the browser
  • How can I listen to a DOM event being fired
  • What is the difference between queue and stack
  • What is the simplest way to mimic stack behavior in JavaScript
  • What kind of data structure is the DOM
  • In a balanced DOM tree, balanced meaning each node has exactly 2 branches, roughly how deep is the tree if there are N DOM nodes at the leaves