arrow function inside an arrow function in javascript code example
Example 1: arrow function in javascript
//function old way
function PrintName(name){
console.log("my name is ", name) ;
}
// Arrow function es6
const PrintName = (name) => {
return console.log("my name is " , name) ;
}
Example 2: js arrow function
hello = () => {
return "Hi All";
}