fat arrow function in java script code example
Example 1: arrow function javascript
// Normal Function in JavaScript
function Welcome(){
console.log("Normal function");
}
// Arrow Function
const Welcome = () => {
console.log("Normal function");
}
Example 2: arrow function javascript
const suma = (num1, num2) => num1+num2
console.log(suma(2,3));
//5