if odd js
function isEven(value) {
return !(value % 2)
}
if odd js
function isEven(value) {
return !(value % 2)
}
odd or even js
for(let count =0; count<=100;count++){
count%2==0? console.log(`${count} is even`):console.log(`${count} is odd`);
;
}
Javascript Check if number is even or odd
function solution(num) {
return num % 2 === 0 ? 'Even' : 'Odd'
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us