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.
Welcome to Codewars!
You need to
return
your final solution instead ofprinting
it. Returning a value allows it to be checked for equality, whilst printing it just outputs the value locally to the console. You need to compile your return value into one last statement which will be a string.All of the Katas on this website work like this
Also, (from your other comment) if there is a problem with the Kata/you have a question about the Kata, I suggesting commenting on the Kata and not on the forums (which is for site problems/issues). I recommend using 3 backticks (`) to display your code, read more here.