Practical JavaScript

my notes from the course located at:

this was hands down the best intro JavaScript course that exists


Higer order functions

functions that:

  • accept other functions
  • enhance the behavior of other functions

Callback functions:

  • the functions that are passed into higher order functions

Event delegation:

  • alows you to avoid adding event listeners to specific nodes; instead, the event listener is added to one parent. That event listener analyzes bubbled events to find a match on child elements


  • a method on functions
  • returns a copy of the function that it is called on where 'this'
  • is set to thte first argument passed into .bind()

apply: && call:

  • a method on functions
  • first argument you put your desired this
  • both do this at once on the function
  • if no arguments are provided to the function these work the same
  • if yes arguments, use an array for apply and no array for call

1.) Functions can only be bound once, then they can never be changed Practical JavaScript
Share this