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

Andres Ballares #178

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

AndresBallares
Copy link

No description provided.

} else if (language === "german") {
return "Hallo Welt";
} else {
return "Hello World";

Choose a reason for hiding this comment

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

Since you are returning hello world in two different sections you can actually get rid of the if statement on line 81 because if the user types in "English" it'll go to else anyway

//function animalCounts() {}

const animalCounts =(animal, numberOfAnimals) => {
if(numberOfAnimals > 1){

Choose a reason for hiding this comment

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

A fun thing to think about is how you would handle this in a case where the animal is sheep, which is both singular and plural

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants