This assessment consists of 2 short coding tasks.
Write a JavaScript function called isOdd that takes a number as input and returns true if the number is odd, false otherwise.
isOdd
true
false
Now modify your code. Write a function called isEven that takes a number as input and returns true if the number is even, false otherwise.
isEven
Note: Your code should only contain the isEven function.
Congratulations! You have successfully completed both tasks.