I would have just replace the string return by "Even" | "Odd" if possible.
That's right. I should replace the < operator with <=
If n=0 then result is "-0.0" but should be "0".
This can be shortened to 1 line using an arrow function.
Loading collection data...
I would have just replace the string return by "Even" | "Odd" if possible.
That's right. I should replace the < operator with <=
If n=0 then result is "-0.0" but should be "0".
This can be shortened to 1 line using an arrow function.