Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
nice! i missed the logic of checking if we were at the end of the string and adding the space. i tried to do it with template literals but then hit an error when the words array only had 1 word in it.
clever concept
love how my code took like 25 lines and 3 for loops and this guy solves it with 2 lines of code. fml.
what is this even doing?
Lol, I came to this discussion in hopes I would find someone had already asked this question. kudos to making my life easier sir. Thank you.
same exact solution xD
lol!!! += 1
love it! I'm always trying to think of ways to solve these problems like this but my brain isn't quite here yet. mines a bit longer but accomplishes the same task xD. Good job!
sorting wont work
I knew this was possible but i wasn't sure exactly how to write it so I had to be a bit more lengthy with my answer. I had this in mind though. good answer.
This comment is hidden because it contains spoiler information about the solution