Closures in JavaScript |

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

Great blog and brilliant approach to explain Closures. I read closures years ago but this definitely clarifies the concepts with code repetitions :slight_smile:

1 Like

Glad you liked it :smile: