Page 22 - JavaScript
P. 22
Function Scoping 291
Binding `this` and arguments 292
Bind Operator 293
Binding console functions to variables 294
Function Arguments, "arguments" object, rest and spread parameters 294
arguments object 294
Rest parameters: function (...parm) {} 295
Spread parameters: function_name(...varb); 295
Named Functions 295
Named functions are hoisted 296
Named Functions in a recursive scenario 296
The name property of functions 298
Recursive Function 298
Currying 299
Using the Return Statement 300
Passing arguments by reference or value 301
Call and apply 302
Default parameters 303
Functions/variables as default values and reusing parameters 304
Reusing the function's return value in a new invocation's default value: 305
arguments value and length when lacking parameters in invocation 305
Functions with an Unknown Number of Arguments (variadic functions) 306
Get the name of a function object 307
Partial Application 307
Function Composition 308
Chapter 49: Generators 310
Introduction 310
Syntax 310
Remarks 310
Examples 310
Generator Functions 310

