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);
本题为“单选题”