Sascha Schulz
2024-10-14 2e49cc24be25dfc42166d75061d6050fabbfb325
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class Rectangle {
    constructor(a, b) {
        this.a = a;
        this.b = b;
    }
 
    getArea() {
        return this.a * this.b;
    }
}
 
const r = new Rectangle(2, 3);
 
console.log(r.getArea());