arrow function in a fucntion code example
Example 1: arrow function javascript
const suma = (num1, num2) => num1+num2
console.log(suma(2,3));
//5
Example 2: arrow function map js
const exampleArray = ['aa','bbc','ccdd'];
console.log(exampleArray.map(a => a.length));
//Would print out [2,3,4]