javascript arrow function with arguments 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: how to make javascript function consise
multiplyfunc = (a, b) => { return a * b; }