class Point {
constructor(x, y) { this.x = x; this.y = y; }
}
const p = new Point(3, 4);
p.x; // 3Properties assigned in the constructor are attached to every instance.
Properties set in the constructor become own properties of each instance. They are not shared across instances and are directly settable and readable.
Challenge: Create a class that assigns multiple properties in the constructor and verify they work correctly.