2
Reply

What does this refer to ?

Imran Javed Zia

Imran Javed Zia

Dec 07, 2015
460
0

    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.

    Vishal Jadav
    August 12, 2016
    0

    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.

    Imran Javed Zia
    December 07, 2015
    0