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