What exactly does “closure” refer to in JavaScript?
From JavaScript Closures Two one-sentence summaries: A closure is the local variables for a function – kept alive after the function has returned, or A closure is a stack-frame which is not deallocated when the function returns. (as if a ‘stack-frame’ were malloc’ed instead of being on the stack!) A very good article on closures … Read more