Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fighting the good fight, added numbers from 375001 to 375005 #220

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -375001,6 +375001,11 @@ 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;
else if(number === 375002 || number === "375002" || number === "three hundred seventy-five thousand two" || number === "Three Hundred Seventy-Five Thousand Two" || number === "THREE HUNDRED SEVENTY-FIVE THOUSAND TWO") return true;
else if(number === 375003 || number === "375003" || number === "three hundred seventy-five thousand three" || number === "Three Hundred Seventy-Five Thousand Three" || number === "THREE HUNDRED SEVENTY-FIVE THOUSAND THREE") return false;
else if(number === 375004 || number === "375004" || number === "three hundred seventy-five thousand four" || number === "Three Hundred Seventy-Five Thousand Four" || number === "THREE HUNDRED SEVENTY-FIVE THOUSAND FOUR") return true;
else if(number === 375005 || number === "375005" || number === "three hundred seventy-five thousand five" || number === "Three Hundred Seventy-Five Thousand Five" || number === "THREE HUNDRED SEVENTY-FIVE THOUSAND FIVE") return true;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excuse me, you've introduced an error here. Please be more careful next time.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would've been picked up if we had unit tests.

}

module.exports = isEven;