//JavaScript 中没有结构体function Point(x, y) { this.x = x; this.y = y;}let p1 = new Point(1, 2);let x1 = p1.x;//x1 is 1console.log(`x1 is ${x1}`);let p2 = new Point();let x2 = p2.x;//x2 is undefinedconsole.log(`x2 is ${x2}`);