how to check if a number is divisible by another number in javascript code example
Example: js check if number is divisible by 2
if (variable % 2 === 0) {
console.log("Even")
} else {
console.log("Odd")
}
if (variable % 2 === 0) {
console.log("Even")
} else {
console.log("Odd")
}