Now, when ever we create a new Car prototype, we get this alert. It's a great way to make sure it's working! Now lets add some variables to our class. For a car we will need a make a model and a color.
Now, after the function, we need to do a little bit more.
This sets the default value of the make, model and color. It also introduces us to the prototype property. Later, we will use this prototype property to create our sports car class that inherits the Car class. Now we are all set to create some cars!
Go ahead and play around a bit with this. Next, we will talk about how you can use prototype to create another class that inherits another class.