30 August 2005 10:30
![](http://blogmarks.net/screenshots/2005/08/30/3eea7871d06e87d5035c9c544b5a270e.png)
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
(1 marks)