Closures in JavaScript | kirupa.com

by kirupa | 30 December 2013

By now, you probably know all about functions and all the fun functiony things that they do. An important part of working with functions, with JavaScript, and (possibly) life in general is understanding the topic known as closures. Closures touch upon a gray area where functions and variable scope intersect:


This is a companion discussion topic for the original entry at http://www.kirupa.com/html5//closures_in_javascript.htm