Can anyone explain the difference between closure and anonymous functions?
- by Stick it to THE MAN
I am relatively new to Javascript. I understand the concept of anonymous functions - but closures seem less clear. The similarity between the two (in my mind atleast), is confusing.
Could someone explain the difference? (preferrably, with some code snippet, to illustrate the points clearer).