Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Created July 6, 2022 04:09
Show Gist options
  • Save rahulbanerjee26/1051b375c1f62a2f94f10b6aff5ef335 to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/1051b375c1f62a2f94f10b6aff5ef335 to your computer and use it in GitHub Desktop.
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