JavaScript program to check if a number is odd or even:

Created with Sketch.