| 3 | } |
| 4 | |
| 5 | class Rectangle { |
| 6 | constructor(height, width) { |
| 7 | this.height = height; |
| 8 | this.width = width; |
| 9 | this.i = 0; |
| 10 | print_hi(); |
| 11 | this.calcArea() |
| 12 | } |
| 13 | calcArea() { |
| 14 | this.incr(); |
| 15 | return this.height * this.width |
| 16 | } |
| 17 | incr() { |
| 18 | this.i++; |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | function do_calc() { |
| 23 | const the_area = square.calcArea() |
nothing calls this directly
no outgoing calls
no test coverage detected