nested-functions
Nested functions in JavaScript refer to the practice of defining a function inside another function. The inner function is encapsulated within the scope of the outer function, allowing it to access variables and parameters from its containing function. This can be useful for creating private functions or organizing code into modular components. However, it's important to note that each time the outer function is called, a new instance of the inner function is created, potentially affecting memory usage if used excessively.
Outer functions have access to inner functions.
Inner functions are "hidden" from outside the outer function.