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.
I did, it seems you didn't. Let's show you your code structure so you can see it:
You misplaced some
}
. Read this: https://docs.codewars.com/training/troubleshooting#post-discourse and use markdown formatting in your code so it's easier to read when you post it here, please.Did you look at the code I posted?
You have an
else
after afor
. Reading the error message helps:It tells you exactly in which line you have the problem. Before your
else if
you need anotherelse if
or anif
.This comment is hidden because it contains spoiler information about the solution