Sascha Schulz
2023-06-06 a06ab8e309a5b498c1e95f3788f1e85db7a34a3d
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());