6 kyu

"Stringing"+"Me"+"Along"

6,145 of 6,906shinchy

Description:

Implement a function that receives a string, and lets you extend it with repeated calls. When no argument is passed you should return a string consisting of space-separated words you've received earlier.

Note: There will always be at least 1 string; all inputs will be non-empty.

For example:

createMessage("Hello")("World!")("how")("are")("you?")() === "Hello World! how are you?"
create_message("Hello")("World!")("how")("are")("you?")() == "Hello World! how are you?"

Tip (helpful, but not necessary): Try using classes!

Good luck and happy coding!

Functional Programming
Fundamentals

Stats:

CreatedSep 12, 2015
PublishedSep 12, 2015
Warriors Trained10752
Total Skips471
Total Code Submissions33866
Total Times Completed6906
JavaScript Completions6145
Python Completions777
Dart Completions16
Total Stars143
% of votes with a positive feedback rating92% of 566
Total "Very Satisfied" Votes488
Total "Somewhat Satisfied" Votes65
Total "Not Satisfied" Votes13
Ad
Contributors
  • shinchy Avatar
  • myjinxin2015 Avatar
  • FArekkusu Avatar
  • monadius Avatar
  • user8436785 Avatar
  • Formula-9 Avatar
  • anusha.j Avatar
  • KayleighWasTaken Avatar
Ad