✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class Counter {constructor() {
this.count = 0;
}
increment() {
this.count++;
}
}
const c = new Counter();
c.increment();
c.increment();
console.log(c.count);