Answers for "js check if number is divisible by 2"

2

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
2

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 "js check if number is divisible by 2"

Code answers related to "Javascript"

Browse Popular Code Answers by Language