These are notes I made while watching this video by
David Aragon from jQuery conf 2014.
He was kind enough to share his slides here.
I have copied some of his examples form the slides to provide context for my notes,
some of them have been slightly modified. Any errors, are likely my own. Caveat Lector.
JS uses functional scope not block scope like C or Scala, e.g. the if(){}
'block' is
not its own scope