🙏 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()?
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
🙏 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 thancall()
?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.