Created
October 15, 2013 12:58
-
-
Save LarryAnomie/6991202 to your computer and use it in GitHub Desktop.
simple fn to test if a number is even
This file contains hidden or 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
/** | |
* returns true if a number is even | |
* @param {Number} value | |
* @return {Boolean} | |
*/ | |
isEven = function(value) { | |
if (value % 2 === 0) { | |
return true; | |
} else { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment