how function works in javascript code example
Example 1: define function in javascript
/* Declare function */
function myFunc(param) {
// Statements
}
Example 2: javascript function
the function of javascript is to teach first year programers
synactically correct language constructs by way of an anti-pattern.