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.
Read this: https://docs.codewars.com/training/troubleshooting
You have an error with your solution.
Sorry, if you are not more specific, we can't be more specific. Help us help you!
A problem with your code is not a kata issue. You have several problems there, missing
}
and not returning for certain values. Mark your post as having spoiler content next time and please read this: https://docs.codewars.com/training/troubleshootingThis comment is hidden because it contains spoiler information about the solution
I'm geting an error with my solution anyhelp?
Please tag you comment as spoiler if you have code in it.
Your first solution will also work flawlessly on codewars. Use that.
Your second solution does not use the ternary operator correctly.
This comment is hidden because it contains spoiler information about the solution