function X_Wing(pilot){ this.pilot = pilot; console.log(this); } var xw = new X_Wing("Luke"); console.log(xw.pilot);