twhite96
3/18/2017 - 11:48 PM

Multi args

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;
}