A closure is an inner function that has access to the outer (enclosing) function’s variables and parameters. Here we take a look at some interesting examples of closures in JavaScript.
For a transcription of this video and even more content on engineering and technology, visit us at http://www.toptal.com/videos.
Original source
2 responses to “JavaScript Video Tutorial – Closures”
Only I want to do fix to this video. The clausre "for" I think could to be…
for(x=0, max=5; x<max; x++)
very weell !!