The this keyword relates to the current object and is a reference variable. As an illustration:
var address=
{
company:"CodeHubs",
city:"Noida",
state:"UP",
fullAddress:function()
{
return this.company+" "+this.city+" "+this.state;
}
};
var fetch=address.fullAddress();
document.writeln(fetch);