关于作者

Discuss / JavaScript / 练习

练习

Topic source

米yu言

#1 Created at ...

'use strict'; class Animal { constructor(name) { this.name = name; } } class Cat extends Animal{ constructor(name){ super(name); }

say(){ return ('Hello, '+ this.name+'!');}

}


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.