| Viewed 87 times

How I can check Is the Number Even or Odd in JavaScript?


a function that takes a number as an argument and returns "even" for even numbers and "odd" for odd numbers. Examples isEvenOrOdd(3) // "odd" isEvenOrOdd(4) // "even"