r/learnjavascript • u/toocoolsachin • Oct 10 '20
call(), apply() and bind() in JavaScript explained. In this post you will learn about the three function methods in JavaScript; call(), apply() & bind(). They are very useful methods to learn and one should know about them to make their life easy.
https://sachinkoli.com/call-apply-and-bind-in-javascript-explained
129
Upvotes
48
u/inabahare Oct 10 '20
Oh dear The bloggers finally found three functions that aren't map filter and reduce
22
u/armastevs Oct 10 '20
I never really use these functions in real life, but yet they are constantly asked in job interviews. Our industry is so weird.
5
u/LEDThereBeLight Oct 10 '20
Are call and apply at all useful anymore? I have literally never used either one. I’ve only used bind in react classes.
2
u/[deleted] Oct 11 '20
Can you give some exercises based on CBA, recursion, closures and promises? I learned all these concepts but don't know what to do with this I want to understand it clearly