Skip to content

Instantly share code, notes, and snippets.

@thomasvaeth
Created April 23, 2018 16:54
Show Gist options
  • Save thomasvaeth/07da83cafb856eaedf596e3eb75a7de4 to your computer and use it in GitHub Desktop.
Save thomasvaeth/07da83cafb856eaedf596e3eb75a7de4 to your computer and use it in GitHub Desktop.
Wherever you are, be there totally." - Eckhart Tolle
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