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.
Oo0, That is a long function!
Can barely understand this. Can you please explain?
We both got a similar process. Except i only used push once. Nice job!
how come evens doest have a let or a var? How is that a variable?
They compare the result of getting the index of 'english' (which returns -1 if no index can be found) to -1. Comparisons return a boolean value.
True, but I did so since the description didn't say not to mutate the array. Using slice() would likely be a better practice since it returns a shallow copy.
Yes, but mutating the array isn't best practice.
This comment is hidden because it contains spoiler information about the solution
how does that code give you true or false?
be careful with this one. You named the paramater "array" which could be really confusing for anyone else looking at this, considering the function accepts strings.