function Shape() {
  this.name = 'Shape 1';
}

function Rectangle() {
  Shape.call(this);
}

Rectangle.prototype = Object.create(Shape.prototype);
const rect = new Rectangle();

console.log(rect.name);
// expected output: "Shape 1"