Skip to content

Instantly share code, notes, and snippets.

@AlexKondov
Created May 28, 2018 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexKondov/48844e8a1204ccaa065314e7e3122b08 to your computer and use it in GitHub Desktop.
Save AlexKondov/48844e8a1204ccaa065314e7e3122b08 to your computer and use it in GitHub Desktop.
function add(x) {
return function(y) {
return x + y;
}
}
const addTwo = add(2);
const result = addTwo(3); // 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment