function a() { this.aa = 123; return {cc:456}; } function doit(){ //todo var d = new a(); alert(d.aa); //aa: Undefined }