diff --git a/index.js b/index.js index e9596f9..8dabce4 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ function isEven(number) { if (number === "even" || number === "Even" || number === "eVen" || number === "evEn" || number === "eveN" || number === "EVen" || number === "EvEn" || number === "EveN" || number === "eVEn" || number === "eVeN" || number == "evEN" || number === "eVEN" || number === "EvEN" || number === "EVeN" || number === "EVEn" || number === "EVEN") return true; + else if(number == "odd" || number === "Odd" || number === "oDd" || number === "odD" || number === "ODd" || number === "oDD" || number === "OdD" || number === "ODD") return false; else if(number === 0 || number === "0" || number === "zero" || number === "Zero" || number === "ZERO") return true; else if(number === 1 || number === "1" || number === "one" || number === "One" || number === "ONE") return false; else if(number === 2 || number === "2" || number === "two" || number === "Two" || number === "TWO") return true; @@ -375001,6 +375002,7 @@ function isEven(number) { else if(number === 374998 || number === "374998" || number === "three hundred seventy-four thousand nine hundred ninety-eight" || number === "Three Hundred Seventy-Four Thousand Nine Hundred Ninety-Eight" || number === "THREE HUNDRED SEVENTY-FOUR THOUSAND NINE HUNDRED NINETY-EIGHT") return true; else if(number === 374999 || number === "374999" || number === "three hundred seventy-four thousand nine hundred ninety-nine" || number === "Three Hundred Seventy-Four Thousand Nine Hundred Ninety-Nine" || number === "THREE HUNDRED SEVENTY-FOUR THOUSAND NINE HUNDRED NINETY-NINE") return false; else if(number === 375000 || number === "375000" || number === "three hundred seventy-five thousand" || number === "Three Hundred Seventy-Five Thousand" || number === "THREE HUNDRED SEVENTY-FIVE THOUSAND") return true; -} + else if(number === 375001 || number === "375001" || number === "three hundred seventy-five thousand one" || number === "Three Hundred Seventy-Five Thousand One" || number === "THREE HUNDRED SEVENTY-FIVE THOUSAND ONE") return false; + } module.exports = isEven;