Created
February 6, 2021 21:10
-
-
Save jloescher/ad62da2c88036792588c0cac29487928 to your computer and use it in GitHub Desktop.
Check if the value of a number is even.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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