Write a function in javascript that accepts one number as a parameter, and returns whether that number is even or odd. (Return the string "even" or "odd" code example
Example: check if number is even javascript
if ( num % 2 == 0) {
alert('Even Number');
}else{
alert('Odd Number');
}