Javascript Context Tutorial – What makes Javascript Weird…and Awesome Pt5




View whole series here: https://www.youtube.com/playlist?list=PLoYCgNOIyGABI011EYc-avPOsk1YsMUe_

Call, Apply & Bind are avoided by many JS developers, but it doesn’t have to be that way. Context is a simple concept that creates complicated realities for developers. In this javascript tutorial, we’re going to cover context in javascript, how it’s determined, and how/why it changes.

When you understand context, you’ll feel much more at home with Javascript as a language, and callbacks, especially will feel much more familiar to you.

Original source


20 responses to “Javascript Context Tutorial – What makes Javascript Weird…and Awesome Pt5”

  1. great video. I know most of this stuff but for some reason the obj literal having its own context confuses me a bit. Aren't functions the only things that can create scope? Why does calling obj.foo() display Object {foo: function} instead of window at 2:30 mark?

Leave a Reply