JavaScript Closures
===================

If you haven’t heard of JavaScript Closures, then you’re in for some good news and some good news and some bad news. Roughly speaking, closures describe how JavaScript variables are inherited in nested functions.The good news about closures is that JavaScript will automatically retain a variable and its value as long as it’s needed, even if the original function has long disappeared. The bad news is that it may not be the variable of value that you had in mind.[More …](/javascript-closures)