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.
It could be applied with either functions, but arrow functions always lead to cleaner code. In this solution, the num parameter was changed to length so he can just include the parameter as the length of the array instead of doing this {length: num}. Leads to cleaner code. the underscore at (_, i) basically a placeholder for the value since we don't really need a specific value from an array here.
This comment is hidden because it contains spoiler information about the solution
Not a kata issue, your function should handle that too.
What is this random array1??? You have function argument to work with. Also, you need to return a number, not a string.
The usual reason people fail this kata is because they assume there will only ever be one space between words.