How do you create a new object in JavaScript? Select one: a. Var obj = {} b. Var obj = Object(); c. Var obj = new {} code example
Example 1: js create object with properties
var mycar = new Car('Eagle', 'Talon TSi', 1993);
Example 2: js create object with properties
function Car(make, model, year) {
this.make = make;
this.model = model;
this.year = year;
}