Answers for "odd number in js"

3

if odd js

function isEven(value) {
    return !(value % 2)
}
Posted by: Guest on September-02-2020
3

odd or even js

for(let count =0; count<=100;count++){
 count%2==0? console.log(`${count} is even`):console.log(`${count} is odd`);
 ;
}
Posted by: Guest on June-28-2020
0

Javascript Check if number is even or odd

function solution(num) {
    return num % 2 === 0 ? 'Even' : 'Odd'
}
Posted by: Guest on July-10-2021
0

log odd numbers js

for(var n = 0; n <= 10; n+=2) console.log(n)
Posted by: Guest on March-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language