What does calling the inherited static method print?

from Private fields
Node 24 advanced 2 min

What does calling the inherited static method print?

JavaScript
class Sequence {
  static #next = 1;

  static take() {
    return this.#next++;
  }
}

class RegionalSequence extends Sequence {}

console.log(Sequence.take());
try {
  RegionalSequence.take();
} catch (error) {
  console.log(error.name);
}
Open in playground
Report an error