Solution: Modeling a Dog

Let's see the solution to the Modeling a Dog challenge.

Solution

Here is a dog object that has properties name, species, and size and two methods bark() and describe().

Let’s have a look at the solution code below:

Get hands-on with 1300+ tech skills courses.