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.
I posted an explanation of this solution to evarx78's comment. I hope it will help you too.
Hi, I like the comments in the code, but a bit of feedback: the final statement will never be reached, and if it could be, it doesn't perform a valid type check.
wat
beautiful
lol
what
nice
you're hired
they join the elements in the array without spaces
if you wanted to join all the elements with commas between them you'd use .join(', ')
This comment is hidden because it contains spoiler information about the solution
Instead of 'triangle' it should have been 'square', don't know why I put that lol
Either way, hope you enjoy it. Happy coding!