Skip to main content
Home / Code Snippets / JavaScript / Check if Number is Even/Odd

Check if Number is Even/Odd

function isEven(value) {
	if (value%2 == 0)
		return true;
	else
		return false;
}