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.
OP solved it, closing
loop through the array of numbers (
[1,2,4,8,16]
), check ifn
(2
) is within it using your language's builtin function (if any) or another loop if not any!Sorry, I don't know JavaScript. I think you would find help sooner if you posted at least part of your code here.
You have to test if it's an array before trying to sort it.
You need to make sure what you're trying to sort is an array first.
Anyone who has completed the kata.
As soon as someone translates it ;-)
Read this.
You wrote Plays instead of plays there.
Don't create another post for the same problem, read my answer below in the post below.
Spot the difference:
Your code has a typo. The comparison isn't case insensitive.