how to declare functions in java script code example
Example: js function
function name(parameter1, parameter2, parameter3) {
// what the function does
}
function name(parameter1, parameter2, parameter3) {
// what the function does
}