Re: [JSMentors] Blog post on closures in JavaScript

2011-04-26 Thread Lasse Reichstein
On Tue, 26 Apr 2011 21:31:16 +0200, Poetro wrote: 2011/4/26 Lasse Reichstein : 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 i

Re: [JSMentors] Blog post on closures in JavaScript

2011-04-26 Thread Poetro
2011/4/26 Lasse Reichstein : > 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 defined at the begining of the

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 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 understand this crucial (an

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 wrote: > On Tue, Apr 26, 2011 at 10:48 AM, Nick Morgan wrote: >> >> Hi all

Re: [JSMentors] Blog post on closures in JavaScript

2011-04-26 Thread Peter van der Zee
On Tue, Apr 26, 2011 at 10:48 AM, Nick Morgan 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 understand this cruc