js create object with properties

JavaScript
var mycar = new Car('Eagle', 'Talon TSi', 1993);
function Car(make, model, year) {
  this.make = make;
  this.model = model;
  this.year = year;
}

Source

Also in JavaScript: