Created
April 8, 2020 01:15
-
-
Save sandrabosk/92932418716dd068420bcc9af4ac70a8 to your computer and use it in GitHub Desktop.
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
// ************************************************************************************ | |
// https://www.codewars.com/kata/53da3dbb4a5168369a0000fe/train/javascript | |
// Create a function (or write a script in Shell) that takes an integer as an argument | |
// and returns "Even" for even numbers or "Odd" for odd numbers. | |
// ************************************************************************************ | |
function even_or_odd(number) { | |
if (number % 2 === 0) { | |
return `Even`; | |
} | |
return `Odd`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment