new javascript functions code example
Example 1: javascript functions
function sayHelloTo(to) {
alert(`Hello ${to}`);
}
sayHelloTo('World from Grepper')
Example 2: new function javascript
var add = function(num1, num2) {
return num1 + num2
}