Welcome to day 2 of 7 Days of JavaScript!
Let’s begin our journey today. We need to write a function that takes an array and gives back two values...
For further actions, you may consider blocking this person and/or reporting abuse
I used a filter for even and odd, then a reduce for both. Probably cost the browser more power eh?
Probably. Usually, for loops are faster, but maybe with larger inputs reduce outworks a for loop...