Sascha Schulz
2023-05-09 2dfa696fbc51a3dd3a6c3731847f28e3617fa18d
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());