Explain the use cases for, and differences between —
apply are very similar—they invoke a function with a specified
this context, and optional arguments. The only difference between
apply is that
call requires the arguments to be passed in one-by-one, and
apply takes the arguments as an array.
In this example, we’ll create an object…