Answers for "check if two numbers are divisible javascript"

10

js check if number is divisible by 2

if (variable % 2 === 0) {
  console.log("Even")
} else {
 console.log("Odd") 
}
Posted by: Guest on January-06-2021

Code answers related to "check if two numbers are divisible javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language