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.
The Log appears above the test result, so the one that your code is failing is not the one you wrote. Read my previous post again to fix that.
Try using
console.log("*"+str+"*");
instead to check the last 2 of those 3 cases your code fails. Also check whatparseInt()
of a string returns and what comparing that value to a number returns (you already have a console.log that shows that).