arrow function javascipt code example
Example 1: () = javascript
//Normal function
function sum(a, b) {
return a + b;
}
//Arraw function
let sum = (a, b) => a + b;
Example 2: how to make javascript function consise
multiplyfunc = (a, b) => { return a * b; }