value function in javascript code example
Example 1: javascript functions
function sayHelloTo(to) {
alert(`Hello ${to}`);
}
sayHelloTo('World from Grepper')
Example 2: define value in js
var var1 = 1; //value
var var2 = "str";
var var3 = 'char';