Functions defined at the top level of your code have global scope, whereas functions defined within another function have local scope
- 11. Anonymous Functions, Scope and Closures: Serious functions
- Publisher: O'Reilly Media, Inc.
- Released: March 2014
What is the scope of each type of function?