39
Possible Duplicate:
How do JavaScript closures work?
Javascript closures and side effects in plain English? (separately)
I'm new to JavaScript but I'm really confused by how closures work. Can someone explain in layman's terms what they are or why they are useful?