class Color { constructor(color) { this.color = color } getColor() { console.log(this.color, '???') // return this.color } } class Rainbow extends Color { constructor(props) { super('red') } } new Rainbow('blue')