how to js function to arrow function code example
Example 1: () = javascript
//Normal function
function sum(a, b) {
return a + b;
}
//Arraw function
let sum = (a, b) => a + b;
Example 2: javascript arrow function
const welcome = () => {
console.log("THIS IS A ARROW FUNCTION")
}