simple arrow functino 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: arrow function javascript
// Traditional Function
function (param) {
var a = param * 3;
return a;
}
//Arrow Function
(a, b) => {
let c = (a * b) + 3;
return c;
}