← Back to challenges

One Odd and One Even

JavaScriptHardnumbersvalidation

Instructions

Given a two digit number, return true if that number contains one even and one odd digit.

Examples

oneOddOneEven(12) ➞ true

oneOddOneEven(55) ➞ false

oneOddOneEven(22) ➞ false

Notes

N/A

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