Sometimes you want to borrow a function and use it on a different object. call() and apply() let you explicitly set what this refers to.
wizard object and a warrior objectwizard has a castSpell methodcall() to make the warrior cast the spell! wizard.castSpell.call(...)Submit your code to see test results