So let's say that I have this:
function Car(make, model, year) {
this.make = make;
this.model = model;
this.year = year;
}
var car1 = new Car("VW", "Bug", 2012);
var car2 = new Car("Toyota", "Prius", 2004);
document.write(car1.make, car1.model, car1.year);
document.write(car2.make, car2.mocel, car2.year);
Is there a cleaner way to write out all of the properties/values of objects? Thank!