2.6.1 Simple Functions
82
2.6.2 Swapping Out Functions
83
2.6.3 Functions with Parameters
84
2.6.4 Changing Parameters
85
2.6.5 Functions with Return Value
87
2.6.6 Destructuring Assignment
88
2.6.7 Evaluation Using Short Circuit
90
2.6.8 Any Number of Parameters
92
2.6.9 Default Values for Parameters
93
2.6.10 The Validity of Variables
94
2.6.11 Recursive Functions
96
2.6.12 Anonymous Functions
97
2.6.13 Callback Functions
100