function const2(){ var obj=new construct(55); obj.c=6; obj.d=function(){this.f=this.a+this.c} return obj; }; var f=new const2();alert('f='+f);f.d();alert(f.f);