Example in Action: Function Closure

When using closures in JavaScript, you can think of them as a "nested" function. The inner function will have access to the outer function's variables, its own variables, and the global variables. The inner function has access to the outer function's parameters so that they can be quite powerful. After watching this video, can you name the inner function and outer function and describe how they work together?


Source: nevsky.programming, https://www.youtube.com/watch?v=Chz8D3uQHa
Creative Commons License This work is licensed under a Creative Commons Attribution 3.0 License.

Last modified: Monday, August 21, 2023, 11:43 PM