var a1 = "wrong"; function a() { return "1st"; }; function a(val) { this.a1 = "right"; return "2nd"; } alert(new a().a1);