Skip to content

Instantly share code, notes, and snippets.

@AshishKapoor
Last active September 3, 2021 09:09
Show Gist options
  • Save AshishKapoor/b3ca6c9cb360e61db3f062afb50e079c to your computer and use it in GitHub Desktop.
Save AshishKapoor/b3ca6c9cb360e61db3f062afb50e079c to your computer and use it in GitHub Desktop.
Merge words
/*
Create a function that will allow you to pass in a string, with the ability to add to this with more function calls.
When it is finally passed an empty argument returns the full concatenated string of all arguments passed previously.
// For example: mergeWords("Hello")("World!")("how")("are")("you?")();
// This will return the following: "Hello World! how are you?"
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment