Sponsorised links
This year
Javascript Closures
A "closure" is an expression (typically a function) that can have free variables together with an environment that binds those variables (that "closes" the expression).
historical document apparently.
Sponsorised links
2007
2005
SitePoint Blogs » Blog Archive » Closures and executing JavaScript on page load
createAdder(x) is a function that returns a function. In JavaScript, functions are first-class objects: they can be passed to other functions as arguments and returned from functions as well. In this case, the function returned is itself a function that takes an argument and adds something to it.
1
(7 marks)
