arrow function with parameters javascript code example
Example 1: arrow func in javascript
const greet = (who) => {
return `Hello, ${who}!`;
};
greet('Eric Cartman'); // => 'Hello, Eric Cartman!'
Example 2: how to make javascript function consise
multiplyfunc = (a, b) => { return a * b; }
Example 3: js arrow function
hello = () => {
return "Hi All";
}