选择题116题:下面代码的输出是什么?

1class Dog { 2 constructor(name) { 3 this.name = name; 4 } 5} 6 7Dog.prototype.bark = function() { 8 console.log(`Woof I am ${this.name}`); 9}; 10 11const pet = new Dog("Mara"); 12 13pet.bark(); 14 15delete Dog.prototype.bark; 16 17pet.bark();
难度:
更新时间:2021-07-04

本题为单选题”

赞赏支持

预览

题库维护不易,您的支持就是我们最大的动力!