May 2018
Intermediate to advanced
376 pages
9h 22m
English
After reading lesson 16, you will
In lesson 11 you learned about destructuring objects and arrays. These same principles can be used directly within the parameter list of a function. This makes array and object parameters easier to deal with and more self-documenting, and opens the door for useful techniques such as simulating named parameters.
The following function takes three parameters. How would you go about making all of the parameters optional so the function could be called setting only the necessary values? For ...
Read now
Unlock full access