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!!
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"]
Loading collection data...
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"]