In Chapter 10, you learned that functions can be used to package together pieces of code into well-defined units that can be reused over and over again. In this chapter, we are going to go into more detail about how JavaScript keeps track of these functions.
13.1 The Program Stack
Previously, we talked about local variables (variables defined within functions) and global variables (variables defined outside of functions). We mentioned that local variables are specific to the function that they ...