SOURCE

class a{
     constructor(name){
    this.name = name;
  }
  getName(){
    return this.name;
  }
};
let aa = new a('aaa');
class test extends a{};
let ccc = new test('jdksjk');
console 命令行工具 X clear

                    
>
console