Skip to content

Instantly share code, notes, and snippets.

@jloescher
Created February 6, 2021 21:10
Show Gist options
  • Save jloescher/ad62da2c88036792588c0cac29487928 to your computer and use it in GitHub Desktop.
Save jloescher/ad62da2c88036792588c0cac29487928 to your computer and use it in GitHub Desktop.
Check if the value of a number is even.
function isEven(value) {
if (value%2 == 0)
return true;
else
return false;
}
console.log(isEven(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment