define function. list types of function in javascript code example
Example: define function in javascript
/* Declare function */
function myFunc(param) {
// Statements
}
/* Declare function */
function myFunc(param) {
// Statements
}