15. - ' this ' keyword
- every function, while executing, has a
reference to its current execution
context, called this
- Informs us the address of the building
we're looking for (before looking
floor by floor)
- Look at the call site
20. - Arrow functions vs. function declarations
- they're not equivalent, not silver bullet!
- arrow functions are resolved as any other variable
in lexical time (references the object above it)
- function declarations receives the scope of the
calling site
21. - Closure
- variables can be local or global
- Global variables can be made local with closures
- variables life cycle
- A closure is a function having access to the parent
scope, even after the parent function has closed.