JavaScript program to check if a number is odd or even:
let number = 7;
if (number % 2 === 0) {
console.log(number + " is an even number");
} else {
console.log(number + " is an odd number");
}
JavaScript program to check if a number is odd or even:
let number = 7;
if (number % 2 === 0) {
console.log(number + " is an even number");
} else {
console.log(number + " is an odd number");
}