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

Anton Bredl
Anton Bredl
15,359 Points

Methods Explained: .apply .bind .call

The other way is within functions that are invoked using the .call, .apply, or bind methods. We'll explore these in another workshop.

Is there a workshop/tutorial out there that adequately explains the uses of these methods in relation to the 'this' keyword.

Please help!

-Thanks

3 Answers

According to the Treehouse JavaScript Content Roadmap on Trello, there's a planned workshop for 'JavaScripts call, apply, and bind Methods'. That was added in May 2015 though...

@hstn, any updates on that Workshop?

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

Ping @hstn Any update on the workshop? Would love to see a few workshops drop like last time you dropped several very good workshops.

Dana Ng
Dana Ng
6,366 Points

That link you provided didn't jump to the right place, just adding another link that hopefully works: https://github.com/getify/You-Dont-Know-JS

Thanks for the resource!

i think u can type : this in javascript on the google space & click on sites such as the Mozilla Developer Network (https://developer.mozilla.org/en-US/docs/Web/JavaScript) or Stackoveflow. Hope it may help with more explanations

As Maxwell mentioned, MDN's JavaScript reference is a good resource. Here was a reference to "this" from MDN (scroll down the article to find explanations for "call", "apply", and "bind"): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this