funtion arrow js code example
Example 1: arrow function javascript
function Welcome(){
console.log("Normal function");
}
const Welcome = () => {
console.log("Normal function");
}
Example 2: arrow function javascript
hello4 = (name) => { return ("Hello " + name); }
hello5 = (name) => { return (`Hello new ${name}`) }
function hello1() {
return "Hello simple function";
}
hello2 = function() {
return "Hello functino expression";
}
hello3 = (function() {
return "Hello IMMEDIATELY INVOKED FUNCTION EXPRESSIONS (llFE)";
}())