Last active
November 10, 2018 00:21
-
-
Save Board-Ape/2c8e3af1cef39855c554bdd2c281fa05 to your computer and use it in GitHub Desktop.
Triple Add Solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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