why does js have functions as parameters code example Example: how to create a function with parameters in JavaScript function name(param, param2, param3) { }