What is the difference between call & apply?



What is the difference between call & apply?..

Answer / Sheshmani Saroj

Both call() and apply() are methods of a JavaScript function that let you invoke a function with a specified this value and arguments. The main difference lies in how arguments are passed: call() accepts comma-separated arguments, while apply() requires an array or an arguments object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What are nodes in javascript?

1 Answers  


Give an example of closure?

1 Answers  


What does polyfill mean?

1 Answers  


How to go next field without filling the text? Which function should we use?

4 Answers  


Define unescape() and escape() functions?

1 Answers  


What is difference between deep and shallow object coping in javascript?

1 Answers  


What is camelcase in programming?

1 Answers  


how can we retrieve value from one database server and store them another database server using sql server code

1 Answers   HP,


Is there any difference between javascript and jscript?

1 Answers  


What Does JavaScript Void(0) Mean?

1 Answers  


What is client side programming?

1 Answers  


Explain how to detect the operating system on the client machine?

1 Answers  


Categories