DEV Community

Discussion on: Difference between call,apply and bind

Collapse
 
ciochetta profile image
Luis Felipe Ciochetta

ah, got it

really hadn't thought about callbacks, but that makes some sense

Thread Thread
 
alifattah profile image
Ali Fattah • Edited

Sometimes the bind() method has to be used to prevent losing this, especially in callback. but actually, in ES6 we use the arrow function instead of bind hack to avoid such unwanted mistakes!✌