2
Reply

What does this refer to ?

    this refer to current parent object just like super in javascript.if we are in a page the this means page. if we are in a class this means class it self.

    It depends where you are using this keyword, for example, if you are using this in simple function then it refers to windows object, if it is used in constructor then it refers to newly created object.