DRAG DROP
You are developing an application by using JavaScript.
You must write a function named Add that returns the sum of the variables named v1, v2, v3, v4. The
addValues function must call the Add function and use the appropriate owner object.
You need to complete the sum function.
How should you complete the relevant code? (To answer, drag the appropriate code segment or segments to
the correct location or locations in the answer area. Use only code segments that apply.)
Select and Place:
Explanation:
* What is the difference between call and apply?
apply lets you invoke the function with arguments as an array; call requires the parameters be listed explicitly.
Pseudo syntax:
theFunction.apply(valueForThis, arrayOfArgs)
theFunction.call(valueForThis, arg1, arg2, …)
What is the difference between call and apply?
it is okay