26 Nov

Screencast: call and apply

In this 7 minute screencast I discuss the usages of the call and apply methods within JavaScript.

JavaScript: call and apply from The JavaScript Playground on Vimeo.

Source code:

The methods are really useful when you need to invoke a method and have total control over the scope in which it is called. This is something that personally really confused me when I was learning, so I hope this helps some people. If you are still confused, please leave a comment and I will get back to you.

If you enjoyed this post, signup to the newsletter to be notified when there's new content, new courses and exclusive offers.

If you enjoyed this article please feel free to share it on Twitter.