30 ms·
It worked only once for me (str.split('').reverse().join('') one). But this one didn't: function isOddNumber(num) { return !!(num%2); } Testing for input c
by buraktamturk 5y ago
It worked only once for me (str.split('').reverse().join('') one).
But this one didn't:
function isOddNumber(num) {
return !!(num%2);
}
Testing for input computer:
FAILED! Expected: retupmoc | Got: undefined eval code@ eval@[native code]
- julienreszka 5y agonum % 2 != 0