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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Your solution is too slow. Find something to speed up your process. Do you really need a loop?
More than 2000 correct solutions for JS. Be aware of the meaning of an Issue. You have a question, there is no issue with this kata.
Let me know.
Thanks! Let's wait for @Kaushik-19 to respond.
@Ken Yes, this is JS.
OK. First, is this JS?
Second, please provide the test case. What you have provided is the expected result. You can insert a print statement to extract the test case.
This may or may not be an issue, let's see.
Have you tried resubmitting?
Third, are you sure this is a Kata issue?
if the first element is not x, the program will return false because the else statement is inside the foreach loop.