Created
July 6, 2022 04:09
-
-
Save rahulbanerjee26/1051b375c1f62a2f94f10b6aff5ef335 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 sum(x){ | |
return function(y){ | |
return function(z){ | |
return x + y + z | |
} | |
} | |
} | |
console.log(sum(10)(20)(30)) | |
// Output: 60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment