parameterized functions in javascript w3school code example
Example: how to use function in javascript
/* Declare function */
function myFunc(param) {
// Statements
}
/* Declare function */
function myFunc(param) {
// Statements
}