Last active
January 15, 2019 09:55
-
-
Save hadnazzar/516c5c363f5bc9d41b26132a9c5a0f38 to your computer and use it in GitHub Desktop.
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
function add(x) { | |
return function(y){ | |
return x + y | |
} | |
} | |
add(5)(3) // 8 | |
add(2)(5) // 7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment