My third day of class and we're supposed to make a car sight to use objects. I have four objects. I want to make a table for each one with their keys on the left and their values on the right. Four tables side by side. I would prefer to loop through the keys to make the and loop through the keys for the I've been playing around and failing miserably. Any help would be greatly appreciated. I've got four divs side by side that I want to fill with tables. Here are my objects:
Here are my objects and values:
let Accord = new Car("Accord", 22500, "Crystal White", "alloy", "bose", "leather", "tinted");
let CRV= new Car("CR-V", 28400, "Midnight Black", "alloy", "stock", "cloth", "no tint");
let Pilot = new Car("Pilot", 36796, "Modern Gray Metallic", "alloy", "bose", "leather", "tinted");
let Fit = new Car("Fit", 17499, "Raspberry Blue", "steel", "stock", "cloth", "no tint");
//Here is the entire object:
class Car extends Vehicle {
wheels: string;
stereo: string;
seatsMaterial: string;
tint: string;
constructor(model, price, color, wheels, stereo, seatsMaterial, tint) {
super(model, price, color);
this.wheels = wheels;
this.stereo = stereo;
this.seatsMaterial = seatsMaterial;
this.tint = tint;
}
}