选择题1题:输出什么?

1class Counter { 2 constructor() { 3 this.count = 0; 4 } 5 6 increment() { 7 this.count++; 8 } 9} 10 11const counterOne = new Counter(); 12counterOne.increment(); 13counterOne.increment(); 14 15const counterTwo = counterOne; 16counterTwo.increment(); 17 18console.log(counterOne.count);
难度:
更新时间:2023-12-19

本题为单选题”

赞赏支持

预览

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