how to determine if number is odd or even in javascript in a for loop code example
Example: check if number is even javascript
if ( num % 2 == 0) {
alert('Even Number');
}else{
alert('Odd Number');
}
if ( num % 2 == 0) {
alert('Even Number');
}else{
alert('Odd Number');
}