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 trialAnton Bredl
15,359 PointsMethods 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
Iain Simmons
Treehouse Moderator 32,305 PointsAccording 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?
Anthony c
20,907 PointsHere you go!
You Don't Know JS: this & Object Prototypes
it's a free ebook available at:
Dana Ng
6,366 PointsThat 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!
MUZ140884 Maxwell Makumucha
6,291 Pointsi 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
Joshua Britton
10,252 PointsAs 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
kevinardo
Treehouse Project Reviewerkevinardo
Treehouse Project ReviewerPing @hstn Any update on the workshop? Would love to see a few workshops drop like last time you dropped several very good workshops.
Josh Reynolds
10,734 PointsJosh Reynolds
10,734 PointsHuston Hedinger we still want this workshop!