how to write a fonction javascript code example
Example: js function
function name(parameter1, parameter2, parameter3) {
// what the function does
}
function name(parameter1, parameter2, parameter3) {
// what the function does
}