DEV Community

Discussion on: call(), apply() and bind() in Javascript

Collapse
 
vonbusing profile image
Miro von Busing

🙏 Today, I learned to better understand this.
The last part about apply() was slightly dry: any example about when it makes more sense to use rather than call()?

Collapse
 
thesanjeevsharma profile image
Sanjeev Sharma

That's the only difference: How you pass arguments. Either individually or as an array. I've not used apply() until now so can't give you the right example.