public marks

PUBLIC MARKS from nhoizey with tags fonction & closure

30 August 2005 10:30

SitePoint Blogs » Blog Archive » Closures and executing JavaScript on page load

(via)
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.

nhoizey's TAGS related to tag fonction

2003 +   2007 +   aide +   bonux +   boucle +   closure +   commande +   function +   gp:links +   groupe:clever-age +   guide +   interactif +   javascript +   menu +   office +   plugin +   return +   spip +   spip2 +   squelette +