var dog = new Object(); dog.name = "fido"; dog.weight = 50; dog.color = "Brown";
function animal(){ } var dog = new animal();
function animal(name, weight, color){ this.name = name; this.weight = weight; this.color = color; } var dog = new animal("fido", 50, "Brown");
var dog = {name:"fido", weight:50, color:"Brown};