function Dog(name) {
  this.name = name;
}

dog1 = new Dog('Gabby');

Dog.prototype.toString = function dogToString() {
  return this.name;
}

console.log(dog1.toString());
// expected output: "Gabby"