Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Understanding "this" in JavaScript

Jason Welsh
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Jason Welsh
Treehouse Project Reviewer

Where is the workshop he mentions that talks about call/apply/bind?

I want to learn about call/apply/bind. Huston mentions a workshop about them but I cannot find it.

2 Answers

Seth Kroger
Seth Kroger
56,413 Points

I don't recall encountering such a workshop, but the Understanding "this" is near the bottom of the chronological list of JS workshops, making it one of the oldest surviving ones. It's possible the workshop was planned but never finished. It's also quite possible there was a workshop on call/apply/bind that was retired. The new arrow functions in ES6 don't work with call and apply at all, and bind can only be used to curry them, not alter this.

If you are looking for a video explanation of bind with this, I highly recommend https://www.youtube.com/watch?v=GhbhD1HR5vk

ywang04
ywang04
6,762 Points

I think this one is what you need.