you need to remove the elements from the array that are before the first element that return true when tested, and keep that element that returns true and the rest of the array
if you want to request that the description be rewritten for clarity you can open an issue on github
Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.
Let me try to help you without harming your learning. Try checking all possible loop options, you know from the previous lessons that loops are used to iterate through data structures that are collection of data, like arrays.
Loops can be a real problem if not handled correctly, one of the most common issues are infinite loops. In this exercise you need to traverse the Array right? If you think about it, you have to collect relevant data to help you solve the problem, like:
How long do i need to traverse the array?
How many elements does the example contain?
Is there anything that can give you the number of elements your array contain?
Once you find your answer think about the conditions the loop has to obey in order to stop at the point you need. Last thing you would like to know is how to exit the loop efficiently. Does every loop technique stop if you use return or break?
You can use some debbugging techniques to find if the loop continues or not, like using console.loginside the loop scope. experiment with that as that’s the point in doing these exercises, not learning the pattern but learning how to think out solutions using what you have learnt along the way
i’d like to thank you much for your efforts to help me, yes man i had an idea about all what you said but i was like mind-stopped-working condition,
but you all pushed me so i passed it, thank you all .