Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 729 Bytes

File metadata and controls

20 lines (14 loc) · 729 Bytes
  1. A forEach() method is used when wanting to call a function on each element in an array.

A map() method is also used to call a function on each element in an array BUT map saves the return values of those functions and returns a new array of the same size.

  1. Function - is a block of code that executes something

    Method - is a block of code that executes something but is associated with an object

  2. Closure - A collection of all the variables at the time of the creation of a function.

  3. Four rules of precedence in the 'this' keyword

    1. Default Binding
    2. Implicit Binding
    3. Explicit Binding
    4. New Binding
  4. The 'super' keyword is used to called functions on the parent object.