The apply() method is similar to the call() method except that it takes the arguments of the functions as an array instead of the individual arguments.
Syntax: functionName.apply(Object to borrow values from, [...argsN])
The apply() method allows an object to borrow the method of another object without duplicating the code.
If you use the call() method, you need to pass the arguments of the greet() function separately as follows;let result = greet.call(person, "Hello", "How are you?")