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
7mo
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.

mahendrareddy godi
1y

The call() method takes arguments separately. The apply() method takes arguments as an array. The apply() method is very handy if you want to use an array instead of an argument list.

Anonymous
2y

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.

surendra98 kakarla
2y

The difference is: The call() method takes arguments separately. The apply() method takes arguments as an array. The apply() method is very handy if you want to use an array instead of an argument lis...read more

surendra98 kakarla
2y

The difference is: The call() method takes arguments separately. The apply() method takes arguments as an array. The apply() method is very handy if you want to use an array instead of an argument lis...read more

Select
Add answer anonymously...

Cognizant Associate interview questions & answers

An Associate was asked 1mo agoQ. How do you handle null safety?
An Associate was asked 2mo agoQ. What do you know about Testing?
An Associate was asked 2mo agoQ. Explain how you would test this object.

Popular interview questions of Associate

An Associate was asked 1mo agoQ1. How do you handle null safety?
An Associate was asked 2mo agoQ2. What do you know about Testing?
An Associate was asked 2mo agoQ3. Explain how you would test this object.

Top HR questions asked in Cognizant Associate

An Associate was asked 2d agoQ1. What is your ambition?
An Associate was asked 2d agoQ2. How old are you?
An Associate was asked 3w agoQ3. What can you tell me about your college project?
Cognizant 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