JSFiddle - React, Tailwind, and code Playground

JavaScript

class Person {
  constructor(name) {
    this.name = name;
  }
}

class Person_ extends Person {
  constructor(name_) {
  	super();
    this.name_ = name_;
  }
}

const chel = new Person('John');
console.log('chel', chel.name, chel_.name_);	// но работает без , chel_.name_

const chel_ = new Person_('John_');
console.log('chel_', chel_.name_, chel.name);