Created
April 23, 2018 16:54
-
-
Save thomasvaeth/07da83cafb856eaedf596e3eb75a7de4 to your computer and use it in GitHub Desktop.
Wherever you are, be there totally." - Eckhart Tolle
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 isEvenOdd(num) { | |
return Math.floor(num / 2) * 2 === num ? 'even' : 'odd'; | |
} | |
isEvenOdd(2); | |
isEvenOdd(3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment