Advertisement
Guest User

Untitled

a guest
May 24th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. function isOddOrEven(string) {
  2.  
  3. if (string % 2 === 0) {
  4. return "even";
  5. }
  6.  
  7. return "odd";
  8. }
  9.  
  10. module.exports = {isOddOrEven}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement