News for hackers. Stuff that matters.
Re:JavaScript closures and recursion by ecounysis on Thursday November 25, 2010 @04:39PM (#1941067)
I suppose there's nothing too special abot the code. I have never seen a very good explanation of closures in javascript, so I thought I'd share it for anyone else who might benefit from it. You are more than welcome to not be impressed. In which case you are not likely the intended audience.
Re:JavaScript closures and recursion by camtarn on Thursday November 25, 2010 @06:11PM (#1941215)
Closures did indeed blow my mind when I first decided to properly look into them, having originally assumed that JavaScript was "just like a very limited Java with a couple of weird syntax quirks" ;) Ah, the perils of teaching yourself a language using really, really old web tutorials. I do wish something like PromoteJS.com had been around when I was learning...