DEV Community


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

jakehjung profile image

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.

shimphillip profile image
Phillip Shim Author

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