Click here to Skip to main content
15,895,423 members
Articles / Programming Languages / Javascript

Difference Between .call() and .apply() in Javascript

Rate me:
Please Sign up or sign in to vote.
4.50/5 (7 votes)
7 Oct 2014CPOL1 min read 12.1K   5  
Introduction There is always a confusion in .call() and .apply(). Where to use when? Why we need to call a function using .call() and .apply(),  even if, we can directly call that function ? For Instance :someFunction.call() and someFunc.apply() But we can directly call the function by someFunction(

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
India India
Software Engineer | Blogger | Reader| Music Lover | Cook | Traveler | Foodie

Comments and Discussions