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.
Yeah this is straight to the point, nice! I'm working on learning how loops work and because I try to resolve most of the exercices with loops, I decided to first loop through the arrays and after check if the x is in the array with the includes function. Clearly what I did wasn't needed. :))
I don't understand how the test works...I solved the exercise, it returns true, but I also want to test if is returning false as well and I don't know how to do that. I hope I made my misunderstanding clear.
Got it! My mistake was that in function I wrote the array too, which was not needed.
I dont understand why I get this : expected 'found the needle at position 6' to equal 'found the needle at position 3', what is wrong?