a that contains another function
b can call
b() and that is an example of closure but not the most exemplary. A more obvious example is if our function looked like this:
This time, function
a returned another function whose scope is inside of
a and though it was called out of scope, it still had its original scope. And that’s all closure is, plain and simple.