JavaScript Closure

closure: where a function remembers what happens around it; one function defined inside another (secrets of javascript closures, stuart langridge)

A closure takes place when a function creates an environment that binds local variables to it in such a way that they are kept alive after the function has returned (Understanding JavaScript Closures, Rob Gravelle)