Created
March 18, 2017 23:48
-
-
Save twhite96/d70aacf2562357393a70431573410efc to your computer and use it in GitHub Desktop.
Multi args
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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