arrow function javascript uses code example
Example 1: arrow function javascript
let myFunction = (arg1, arg2, ...argN) => expression
let myFunction = (arg1, arg2, ...argN) => {
statement(s)
}
let hello = (arg1,arg2) => "Hello " + arg1 + " Welcome To "+ arg2;
console.log(hello("User","Grepper"))
Example 2: javascript arrow function
let errow = () => {
};
Or
let errow = ('paramiter') => {
}
Example 3: arrow function javascript
let myFunction = () => {
}
Example 4: javascript arrow function
const welcome = () => {
console.log("THIS IS A ARROW FUNCTION")
}