The Startup
Published in

The Startup

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

What I wish I knew when I started learning about this

Photo by Prateek Katyal on Unsplash

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.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Bret Cameron

Bret Cameron

Writer and developer based in London. On Medium, I write about JavaScript and web development 💻