why do we write arrow function code example
Example 1: how to make javascript function consise
multiplyfunc = (a, b) => { return a * b; }
Example 2: arrow function javascript
// an arrow function is also called a lambda or an anonymous function
let myFunction = () => {
// some logic
}