Syntax function.apply() The apply() method is used to apply a method of one object to another object.Using the apply() method keeps developers from rewriting methods for different objects. Example