Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 700 Bytes

File metadata and controls

20 lines (11 loc) · 700 Bytes

Your responses to the short answer questions should be laid out here using Mark Down.

  1. Describe the biggest difference between .forEach & .map.

    .map returns an array while .forEeach does not

  2. What is the difference between a function and a method?

    a method is a function that lives in an object whereas a function stands alone

  3. What is closure?

    a function that has access to the properties outside of its inner immediatel y local scope

  4. Describe the four rules of the 'this' keyword.

    window/global binding, implicit binding, explicit binding, new binding

  5. Why do we need super() in an extended class?

    to have access to the properties of the parent class