Skip to content Skip to sidebar Skip to footer

Widget HTML #1

JavaScript Program to Check Odd Even Number

JavaScript Program to Check Odd Even Number

Test Case

Test #1
Input Number : 5
5 is an Odd Number.

Test #2
Input Number : 10
10 is an Even Number.

Source Code

//visit us @hobingoding.com

var number = 5
if(number%2==0)
    console.log(number + " is an Even Number.")
else
    console.log(number + " is an Odd Number.")
Fandi Presly Simamora
Fandi Presly Simamora Don't think too long because the chance can't waiting for you.

Post a Comment for "JavaScript Program to Check Odd Even Number"