What is the difference between .call() and .apply()?



What is the difference between .call() and .apply()?..

Answer / Ashish Ku. Singhn

.call() and .apply() are used to invoke a function with a specific 'this' value, but they differ in how arguments are passed.n.call() requires arguments to be passed directly after the function,nwhile .apply() accepts an array-like object (usually an Array) as its second argument.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

How to use strings as array indexes using javascript?

1 Answers  


What are the Advantages and Disadvantages of JavaScript?

1 Answers  


What’s a way to append a value to an array?

1 Answers  


Explain closures in javascript?

1 Answers  


Is javascript a highly secure scripting language?

1 Answers  


What is called variable typing in javascript?

1 Answers  


What are ‘settimeout()’?

1 Answers  


what will happen and why if i will acess the methods of superclass which is declared as private by a object of same subclass.

1 Answers  


What is escape & unescape String functions in JavaScript?

1 Answers  


Can an anonymous function be assigned to a variable?

1 Answers  


java is pure object oriented or not?

4 Answers  


I need project details about WEB CONTENT FILTERING USING NEURAL NETWORKS and how to explain it....plz help me in this topic.....

1 Answers  


Categories