javascript how to call arrow function parameter code example
Example 1: arrow function map js
const exampleArray = ['aa','bbc','ccdd'];
console.log(exampleArray.map(a => a.length));
//Would print out [2,3,4]
Example 2: arrow function javascript
// an arrow function is also called a lambda or an anonymous function
let myFunction = () => {
// some logic
}