MCQs>IT & Programming>JavaScript>Consider the function f: var f = function(a,b,c) { console.log(a,b,c); } Out of the options below, what is the right way of calling the function in order for the console to output nothing else than "1 2 3"?
JavaScript MCQs
Consider the function f: var f = function(a,b,c) { console.log(a,b,c); } Out of the options below, what is the right way of calling the function in order for the console to output nothing else than "1 2 3"?
Answer
Correct Answer: f.apply(f, [1,2,3])
Explanation:
Note: This Question is unanswered, help us to find answer for this one