WatchMeCode

screencasts by derick bailey

be the first to know about new episodes

Episode 12: When Context And Prototypes Collide

Both JavaScript's context (the 'this' keyword) and prototypes are subjects of much confusion and frustration on their own. Each of these can take an intense study and rigorous practice to master, independently of each other. But the combination of them is where the real headaches begin. When context collides with prototypes in an application, the result is often situations where you expect one thing and something completely different happens.

In this episode, I'll show you a simplified example of how context and prototypes collide. You'll learn how and why your code may not result in what you thought. And you'll see a few options for solving the problems that this dynamic duo can introduce.

Watch The Preview For "When Context And Prototypes Collide."

What you'll learn:

  • How context works with prototypes
  • How to manipulate context
  • Why order of execution matters
  • Using `hasOwnProperty`
  • Overriding prototype attributes
  • ... and more!

What you'll get:

  • 13 minutes of video
  • Download, to take it with you
  • 720p HD video
  • Multiple formats (.mov, .mp4)

Quotes and reactions from viewers

Like what you see? Let me know! - @derickbailey

blog comments powered by Disqus
Published: 2012-11-05. Running Time: 13 minutes.