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.
because you provided a sorted array of strings to the test
Reade the Instructions: Only do what the instruction says, nothing fancy...
laLigaGoals
championsLeagueGoals
copaDelReyGoals
I think a switch would be more efficient... What do you think?
That's the point!! It's called ninja coding and the only the ninja will understand it. You should never write code like this if you intend to passing it on to another coder.
Switch Statement would work too... Nice Alternative!!
Switch Statement would work too... Nice Alternative!!
Yeah me too
Super Mathematical Ninja Code Sensei!!!
My suggestion is that you breakdown the code by methods like the filter method.
Example: filter()
const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present'];
const result = words.filter(word => word.length > 6);
console.log(result);
// expected output: Array ["exuberant", "destruction", "present"]