Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Created October 18, 2020 22:18
Show Gist options
  • Select an option

  • Save MeetMartin/0742331b873c804840a914f6fbfdc1d1 to your computer and use it in GitHub Desktop.

Select an option

Save MeetMartin/0742331b873c804840a914f6fbfdc1d1 to your computer and use it in GitHub Desktop.
const myFirstClassFunction = function(a) {
return function(b) {
return a + b;
};
};
myFirstClassFunction(1)(2); // => 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment