Imran Javed Zia
What does this refer to ?
By Imran Javed Zia in JavaScript on Dec 07 2015
  • Vishal Jadav
    Aug, 2016 12

    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.

    • 0
  • Imran Javed Zia
    Dec, 2015 7

    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.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS