how to do function in javascript code example
Example 1: js function
function name(parameter1, parameter2, parameter3) {
// what the function does
}
Example 2: javascript function
the function of javascript is to teach first year programers
synactically correct language constructs by way of an anti-pattern.