Skip to content

Instantly share code, notes, and snippets.

@mkuklis
Created November 14, 2011 05:53
Show Gist options
  • Save mkuklis/1363346 to your computer and use it in GitHub Desktop.
Save mkuklis/1363346 to your computer and use it in GitHub Desktop.
function add(n1) {
return function (n2) {
return n1 + n2;
}
}
console.log(add(2)(3)); // 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment