class A { constructor(x, y) { this.x = x; this.y = y; } add() { console.log(this.x + this.y); } } class B { add1() { return 11; } } console.log(A.prototype)