Skip to content

Instantly share code, notes, and snippets.

@twhite96
Created March 18, 2017 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twhite96/d70aacf2562357393a70431573410efc to your computer and use it in GitHub Desktop.
Save twhite96/d70aacf2562357393a70431573410efc to your computer and use it in GitHub Desktop.
Multi args
// One line of code and multiple arguements can be reduced to one line but because of multiple arguements you need to keep the parens.
const multiply = (x, y) => x * y;
const add = (a, b) => {
return a + b;
}
const subtract = (a, b) => {
return a - b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment