Wednesday, January 11, 2012

Closures in JavaScript

I'm on a walk over lunch. I was just talking with Rafael about Closures and coming to the conclusion that, as a concept, they are merely an assertion that variables instantiated in a function stay within that function and cannot be used beyond it unless the function returns one of the variables. If one function is nested inside of another then the outer function may not "see" variables instantiated in the inner function.

No comments:

Post a Comment