<script> function code example
Example 1: declare function javascript
function myFunction(var1, var2) {
return var1 * var2;
}
Example 2: javascript functions
function sayHelloTo(to) {
alert(`Hello ${to}`);
}
sayHelloTo('World from Grepper')
function myFunction(var1, var2) {
return var1 * var2;
}
function sayHelloTo(to) {
alert(`Hello ${to}`);
}
sayHelloTo('World from Grepper')