See more
To use a closure, define a function inside another function and expose it. To expose a function, return it or pass it to another function.