call javascript function with this parameter code example Example: how to create a function with parameters in JavaScript function name(param, param2, param3) { }