A Guide to ‘this’— One of the Least Understood Parts of JavaScript

What I wish I knew when I started learning about this

Bret Cameron
Sep 3, 2019 · 9 min read

The keyword this is the cause of a lot of confusion in JavaScript. It’s also important enough that it’s difficult to avoid. If you use React or Angular, for example, you’ll likely to be using JavaScript classes, where the this keyword is almost a necessity.