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.
ok, I will double check my code again. Thank you for the feedback... Ok i double checked and see where it got messed up. all the values were in the array that I was using , but I neeed to look at the condition statement that I have... my mistake
The first value is what your function wrongly returned, not the input value. To see that, print it with
console.log
at the beginning of your code. The tests are fine.Something must be wrong.. THe test expectations appear to be incorrect.. expected [ '3', '5', 2, 8, '3', 4 ] to deeply equal [ 1, 3, 2, 8, 5, 4 ] .. Thats impossible since their no 1 in the array being passed in. The requirments for the code are just to sort the odd numbers.
that is cool