Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3a8166c99b
Fetching contributors…

Cannot retrieve contributors at this time

executable file 10 lines (8 sloc) 0.196 kb
//curried add code
function add() {
var sum = 0;
for (var i = 0; i < arguments.length; i++) sum += arguments[i];
return sum;
}
add(1, 2); // returns 3
add(1, 2, 3, 4, 5); // returns 15
Jump to Line
Something went wrong with that request. Please try again.