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.
Still not get it...
This comment is hidden because it contains spoiler information about the solution
Yep, input was just a number. You can see it on bottom right window, it shows what kind of tests there are.
Thanks, i should create an array first, but not asume that input will be an array.
If it was array, there would be no error. Try using
console.log()
before to see what it really is.i am using on array
Are you using .map on number? Only arrays have .map method.
When use map method the test shows this error:
n.map is not a function