There's a couple ways to define an "object" in JavaScript.
The following uses a standard function to declare a class and some attributes and an accessor:
function Car(make, model, year) {
this.make = make;
this.model = model;
this.year = year;