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.
That´s strange...
Ok, copy and pased the code from here in the forum and it worked?!
Thanks for the pointer regarding my x var!
I was able to pass the tests from copy pasting your code so I can't speak to what the difference is, but I noticed you have a spurious global 'x' when you pass index + 1 to arrString.includes(). It works because the "x = index + 1" returns the new value of x, so its equiveleant to just "index + 1"
This comment is hidden because it contains spoiler information about the solution