when to use function function expression methods and arrow function code example
Example 1: concise body arrow functions javascript
const plantNeedsWater = day => day === 'Wednesday' ? true : false;
//If only 1 Parameter no () needed
//Single line return is implicit
//Single line no {} needed
Example 2: es6 functions
const add = (n1, n2) => n1 + n2