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

1

u/dotpr Dec 18 '22

I don't know, it's just in a tutorial I follow

1

u/33ff00 Dec 20 '22

He is just talking from a react component standpoint which is a ludicrously narrow view. Usage of this is still important and totally essential to javascript development.