Re: [JSMentors] Blog post on closures in JavaScript

2011-04-26 Thread Nick Morgan
Thanks! I'd just been watching some SICP videos when I came up with the idea for the post, so I had that kind of explanation on my mind (but I wanted to make it accessible). Nick On 26 April 2011 19:47, Peter van der Zee jsment...@qfox.nl wrote: On Tue, Apr 26, 2011 at 10:48 AM, Nick Morgan

Re: [JSMentors] Blog post on closures in JavaScript

2011-04-26 Thread Lasse Reichstein
On Tue, 26 Apr 2011 17:48:45 +0200, Nick Morgan skilldr...@gmail.com wrote: Hi all I've written a new post on my blog, Closures explained with JavaScript. http://skilldrick.co.uk/2011/04/closures-explained-with-javascript/ Mentioning it here for two reasons (a) to help the mentees

Re: [JSMentors] Blog post on closures in JavaScript

2011-04-26 Thread Poetro
2011/4/26 Lasse Reichstein reichsteinatw...@gmail.com: In Javascript you can create functions with free variables that aren't defined anywhere (yet), because the scope chain is mutable. In JavaScript there is thing called hoisting, so ever variable that is defined in the function will be

Re: [JSMentors] Blog post on closures in JavaScript

2011-04-26 Thread Lasse Reichstein
On Tue, 26 Apr 2011 21:31:16 +0200, Poetro poe...@gmail.com wrote: 2011/4/26 Lasse Reichstein reichsteinatw...@gmail.com: In Javascript you can create functions with free variables that aren't defined anywhere (yet), because the scope chain is mutable. In JavaScript there is thing called