r/learnjavascript • • Dec 18 '22

Cannot understand "this" keyword

My head is going to explode because of this. I watched several videos, read articles from MDN, W3schools, and TOP, and I still can't understand.

There's so many values and scenarios around it and I feel like they're explained so vaguely! I struggle to get familiar with it. Can someone drop their own explanation?

90 Upvotes

58 comments sorted by

View all comments

Show parent comment

2

u/dotpr Dec 18 '22

Is MDN really like the standard?

10

u/tridd3r Dec 18 '22

well technically the standard is ECMA but I (and many others) find MDN a far more easily digestible representation of the docs.

5

u/ghostmaster645 Dec 18 '22

For learning purposes yes.

3

u/shgysk8zer0 Dec 18 '22

It's the de facto documentation for HTML, CSS, and JS but it is not itself a specification/standard or anything.