how do you create a function in javascript example Example: define function in javascript /* Declare function */ function myFunc(param) { // Statements }