Skip to content

Instantly share code, notes, and snippets.

@Board-Ape
Last active November 10, 2018 00:21
Show Gist options
  • Save Board-Ape/2c8e3af1cef39855c554bdd2c281fa05 to your computer and use it in GitHub Desktop.
Save Board-Ape/2c8e3af1cef39855c554bdd2c281fa05 to your computer and use it in GitHub Desktop.
Triple Add Solution
const tripleAdd = (num1) => (num2) => (num3) => num1 + num2 + num3
// Or traditinally written
function tripleAdd(num1) {
return function(num2) {
return function(num3) {
return num1 + num2 + num3
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment