For an assignment I am supposed to write a recursive function that checks any integer for even or odd using N-2. If even returns true else returns false. But it returns undefine
You can change the following line:
isEven(num);
to
return isEven(num);