What are Closures? If you write code in Javascript it's quite likely you have come across the term closure, which is a useful yet often confusing concept. But just what is a closure? A closure may be described as a combination of a function and the lexical environment in which it was declared.
Full article