Chapter 11: More on Functions
Learning Objectives
Upon completing all the content in this chapter, you should be able to do the following:
- Create and use anonymous functions
- Explain how an anonymous function can be called, even though it doesn’t have a defined name
- Explain common uses of anonymous functions
- Use recursion to create algorithms that solve recursive problems
- Use functions as input parameters to other functions
- Describe the concept of a recursive problem, including the definitions of
base case
andrecursive case
- Explain how base cases are important in preventing infinite recursion
Key Terminology
Here is a list of key terms for this chapter broken down by the page the term first appears on. You should make note of these terms and their definitions.
Functions as Values
- function; as a value
Passing Functions as Arguments
setTimeout
map
Recursion
- recursion
Recursion Walkthrough: The Base Case
base case