MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / Rectangle

Class Rectangle

tests/test_code/js/classes/classes.js:5–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3}
4
5class 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
22function do_calc() {
23 const the_area = square.calcArea()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected