how to tell if a number is ever or odd in javascript code example
Example: how to check if number is even
if ( n % 2 == 0 ) {
// n is even
}
else {
//otherwise odd
}
if ( n % 2 == 0 ) {
// n is even
}
else {
//otherwise odd
}