What does this program print?

from Classes
Node 24 beginner 2 min

What does this program print?

JavaScript
class Counter {
  count = 0;

  increment() {
    this.count += 1;
  }
}

const first = new Counter();
const second = new Counter();

console.log(Object.hasOwn(first, 'count'), Object.hasOwn(first, 'increment'));
console.log(first.increment === second.increment);
Open in playground
Report an error