DEV Community

loading...

Discussion on: This is it! you got 'this'

Collapse
jakehjung profile image
jakehjung

Excellent article Phillip. When I was getting into JavaScript, I read an article somewhere that mentioned that 'this' is used to refer to the antecedent in its 'context', just like English(or any other languages that use pronoun). Thinking this way made so much easier to code in JavaScript. Hope this helps.

Collapse
shimphillip profile image
Phillip Shim Author

Thanks Jake! that is an useful way of thinking about how 'this' works! Nice tip :)