Functions
Function declarations, arrow functions and default values.
Expected output
180 50 42
Arrow functions are the short form, and are ideal for small functions passed to methods such as map and filter.
Closures
A function remembers the variables around where it was created. This comes up often in interviews.
Expected output
1 2