how to check if number is divisible by 7 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")
}