If a subclass doesn't have a constructor() method, the superclass's constructor becomes the default constructor.

The name property of dog gets created through the Animal class's constructor. Try and access it.

We've created no animal object, so go for dog.name instead.