Created
May 3, 2022 09:04
-
-
Save omesser/3c3311091e1ea4ecda85cd124a244a63 to your computer and use it in GitHub Desktop.
javascript - curry sum
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
/* | |
Create a function 'sum' that would make the following function call work as expected and return the sum of two numbers. | |
*/ | |
console.log(sum(2)(5)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment