Ad
  • Custom User Avatar

    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. :))

  • Custom User Avatar

    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.

  • Custom User Avatar

    Got it! My mistake was that in function I wrote the array too, which was not needed.

  • Custom User Avatar

    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?