hello = function(){
return "Hello World";
}
console.log(hello());
Using Arrow Function
let hello = () => {return "Hello World";}
console.log(hello());
Or Simply
let hello = () => "Hello World"; console.log(hello());
let mult = (a, b) => a * b; console.log(mult(5, 10));
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.