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');