Skip to content

Homework Changes#29

Closed
pikapoo92 wants to merge 6 commits intobloominstituteoftechnology:masterfrom
pikapoo92:master
Closed

Homework Changes#29
pikapoo92 wants to merge 6 commits intobloominstituteoftechnology:masterfrom
pikapoo92:master

Conversation

@pikapoo92
Copy link
Copy Markdown

No description provided.

};

const greeting = (language) => {
@@ -11,15 +12,32 @@ const greeting = (language) => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not sure what all of this is.

// language: 'Spanish' -> 'Hola!'
// language: 'Chinese' -> 'Ni Hao!'
// if language is undefined return 'Hello!'
let g = '';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This works, but you could simply just return the string instead of assigning it to a variable and then returning it.
i.e.

case 'German':
  return 'Guten Tag'

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.

2 participants