arow function javascript code example
Example: 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) ;
}