Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 553 Bytes

Answers.md

File metadata and controls

17 lines (11 loc) · 553 Bytes
  1. Describe the biggest difference between .forEach & .map.

.forEach opperate exactly like a for loop itterating through each element and modifying, comparing, or returning a value.

.map takes and array and returns a brand new array.

  1. What is the difference between a function and a method? there isn't?

  2. What is closure? a function inside of a function

  3. Describe the four rules of the 'this' keyword. window, implicit, explicit, new

  4. Why do we need super() in an extended class? it allows a child class to inherit from it's parent class.