4 ms·
This question comes up so often both in IRC support channels and on SO that I don't understand why this wasn't closed as a duplicate. The accepted answer also
by just2n 14y ago
This question comes up so often both in IRC support channels and on SO that I don't understand why this wasn't closed as a duplicate.
The accepted answer also overcomplicates what could be a very simple answer.
In a quick Google, I found this. Asked in '08, not '12: http://stackoverflow.com/questions/111102/how-do-javascript-closures-work http://stackoverflow.com/questions/111102/how-do-javascript-...