Define a car object using a constructor function function Car() { //step 1: add parameter list and complete definition of properties this.stockid; this.make; this.model; code example
Example 1: js create object with properties
var mycar = new Car('Eagle', 'Talon TSi', 1993);
Example 2: js create object with properties
function Car(make, model, year) {
this.make = make;
this.model = model;
this.year = year;
}