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.
Yep, input was just a number. You can see it on bottom right window, it shows what kind of tests there are.
If it was array, there would be no error. Try using
console.log()
before to see what it really is.Are you using .map on number? Only arrays have .map method.