what is main reason for arrow function in javascript code example
Example 1: how to make javascript function consise
multiplyfunc = (a, b) => { return a * b; }
Example 2: js arrow function
hello = () => {
return "Hi All";
}
multiplyfunc = (a, b) => { return a * b; }
hello = () => {
return "Hi All";
}