Sascha Schulz
2024-06-10 c22ae4dc345bbc1f90ddad06c3717dd6f749346e
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());