check if number is even javascript

JavaScript
if ( num % 2 == 0) {
	alert('Even Number');
}else{
	alert('Odd Number');
}

Source

Also in JavaScript: