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.
? char //returns first word
: char //returns all other words after first word
Added that note after submitting, hope it helps any trying to understand the code.
right on
nice
Never knew about that adding 9 trick. I'm sure I will find some use for that somewhere in my future haha :)
I did not know this would work in this environment. Thought you would have to npm install that for it to work. Just tested in VSCode and ran without issue, good to know that func is somehow in there by default.
I should not have used ret.
.map() already makes a new array, I just needed to use .join(' ') after map and then return etray.
Something I noticed after submitting the answer that would have made my code cleaner.
kata hint != kata suggestion
This comment is hidden because it contains spoiler information about the solution
This is probabaly the most succinct and cleanly written refactored code for this answer possible. Well done.