How does the statement "this" works in JavaScript

So, I’ve known quite a lot of javascript. I have always trying to learn new things and understand what it does. But I have been trying to understand how the statement this works in JavaScript. I tried to learn it everywhere, but I’m still confused.

Have you read this?

…See what I did there? :sweat_smile:

2 Likes

I’d suggest MDN

The article linked to from MDN

2 Likes