How do you decide whether to use "call" or "apply" in JavaScript?

AnswerBot
1y

The choice between 'call' and 'apply' in JavaScript depends on whether you have the arguments as an array or as individual parameters.

  • Use 'call' when you have the arguments as individual parameters.

  • Us...read more

massmanju050
8mo
Difference between the call() and apply() methods: The only difference is call() method takes the arguments separated by a comma while apply() method takes the array of arguments. Example 1: This exam...read more
Sumit Raghav
1y

Difference between the call() and apply() methods: The only difference is call() method takes the arguments separated by a comma while apply() method takes the array of arguments. Example 1: This exam...read more

Haribhajan singh
1y

call() passes all arguments after the first one on to the invoked function, while apply() takes an array as its second argument and passes the members of that array as arguments

Anonymous
1y

Call() mathod takes the argument separated by a comma while

Apply() mathod takes tha array of arguments.

Select
Add answer anonymously...

Top Associate Interview Questions Asked at Cognizant

Q. How would you script a process using Loadrunner and JMeter?
Q. How do you handle null safety?
Q. What is your favorite programming language?
Associate Interview Questions
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits