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.
Ahh I see. Awesome, thanks for your help!
And why aren't you returning in that case?
This comment is hidden because it contains spoiler information about the solution
haha! Thanks Chrono, you beat me to posting it!!
Actually, think this is the problem (solution from user Mosef):
With follow-up explanation from user Chrono79 :
Your function should return a number, not that string, that's the error message.
See the sample test, the returned value of your function is compared against 17 there, the string is only visible if you return another thing.
I'm having the exact same problem (Javascript). I've read the troubleshooting section on codewars GitHub, specifically the "When I print my answer it looks exactly the same as the expected value given by assertion message, yet some/all tests fail. Why?" section, but still not come up with an answer to why my code isn't working. I'll print my code below