Guest User

Untitled

a guest
Jul 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var addNumber=function(x){
  2. //first class function : a function treated as an object
  3. return function(y){
  4. //x is a free variable. (i.e. not a local variable or an argument of this function.)
  5. //x is bound to the argument x in lexical environment defined by the addNumber function
  6. return x+y;
  7. };
  8. };
Add Comment
Please, Sign In to add comment