logo - 题百科
找答案
首页
【单选题】
下面JavaScript代码输出结果正确的是class Animal { constructor(name) { this.name = name; } sayHi() { console.log(`hello ${this.name}`); }}class Dog extends Animal { constructor(name, sound) { this.name = name; this.sound = sound; } bark() { console.log(this.sound); }}let wangcai = new Dog('旺财', '喵喵喵');wangcai.bark();( )。
A.
referenceError
B.
喵喵喵
C.
汪汪汪
D.
hello 旺财
参考答案:
登录免费查看参考答案
参考解析:
登录免费查看参考解析
知识点:
登录免费查看知识点
答题技巧:
登录免费查看答题技巧
被用于:
暂无被用于
..
刷刷题刷刷变学霸
.
刷刷题刷刷变学霸