Tagged with closures

Javascript method context

In languages like C# and Java you never really need to give a thought to the this operator. In javascript things are a little more complicated due to functions being first class objects.
Published in Javascript, Web development on Sunday, November 29th, 2009

Javascript closures

Javascript closures are a really powerful feature of the javascript language. Closures are created when a function that’s nested inside another function accesses a variable from its parent’s scope. This is really useful for passing state around your application when the inner function is called after the outer function has exited. Javascript supports functions nested [...]
Published in Javascript, Web development on Friday, October 17th, 2008