← Back to challenges

Return Odd > Even

JavaScriptHardmathvalidationnumbers

Instructions

Given an array, return true if there are more odd numbers than even numbers, otherwise return false.

Examples

oddeven([1, 2, 3, 4, 5, 6, 7, 8, 9]) ➞ true

oddeven([1]) ➞ true

oddeven([13452394823795273847528572346]) ➞ false

Notes

All arrays will have at least 1 item.

javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Characters in Shapes