//In Javascript there are no structuresfunction Point(x, y) { this.x = x; this.y = y;}let p1 = { x: 0, y: 0 };let x1 = p1.x;//x1 is 0let p2 = new Point(1, 1);let x2 = p2.x;//x2 is 1console.log(`x1 is ${x1}`);console.log(`x2 is ${x2}`);