How to write a JS function to check if a number is odd or even or invalid? (fractions are neither odd nor even)
The input comes as a single number argument.
The output should be printed to the console.
Print odd for odd numbers, even for even number and invalid for numbers that contain decimal fractions.