Answers for "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;"

2

js create object with properties

function Car(make, model, year) {
  this.make = make;
  this.model = model;
  this.year = year;
}
Posted by: Guest on April-01-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language