Skip to content

Instantly share code, notes, and snippets.

@EngPeterShaker
Created April 7, 2019 09:59
Show Gist options
  • Save EngPeterShaker/43798dc46413111d92ec22810111962b to your computer and use it in GitHub Desktop.
Save EngPeterShaker/43798dc46413111d92ec22810111962b to your computer and use it in GitHub Desktop.
function that returns a function that returns a function
function a(a) {
function b(b) {
function c(c){
return a * b * c;
}
return c;
}
return b;
}
console.log(a(33)(22)(2)) // a* b *c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment