The “This” Keyword in JavaScript

This series of tutorials talk about context or the “this” keyword in JavaScrtipt. It’s a small piece of the JavaScript language, but it’s really important, and it hangs people up sometimes because it’s a little counterintuitive how “this” works in JavaScript.

For background, JavaScript has a keyword “this,” as do, C++, Java, C# and many other languages. The problem is that the JavaScript version works rather differently, and this is a source of pain and confusion for many JavaScript developers. Since it’s an important part of the language, we should spend some time thinking about it.

Watch these videos on