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.

Don't miss my latest course, React in Five! This course will help you level up your React skills by covering lesser known parts of the React API. Each video is less than five minutes long, and the first four are free to watch. Get started now.

Subscribe to keep up to date with the latest content.

Join the JS Playground mailing list to be kept up to date with the latest tutorials, screencasts and more. You won't be spammed and you can unsubscribe at any time.

Headshot of Jack Franklin

Jack is JavaScript and React developer in London. He's also a keen Elm enthusiast, conference speaker and tweets far too often.