Makes sure that JavaScript functions are called with the expected number and/or types of parameters.