SOURCE

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)

console 命令行工具 X clear

                    
>
console