class Rectangle { constructor(width, height) { this.width = width; this.height = height; } getArea() { return width * height; } } const rect = new Rectangle(5, 10); console.log("Area:", rect.getArea());