1.prototype
by rishul matta
JavaScript
function Dad (){
this.name="dad";
};
var a = new Dad();
Dad.prototype.added=function(){
return this.name;
};
//alert(a.constructor.constructor.added());
alert(a.hasOwnProperty("constructor"));
by rishul matta
function Dad (){
this.name="dad";
};
var a = new Dad();
Dad.prototype.added=function(){
return this.name;
};
//alert(a.constructor.constructor.added());
alert(a.hasOwnProperty("constructor"));