11.Putting it all together


#1

// help us make snoopy using literal notation
// Remember snoopy is a "beagle" and is 10 years old.
var snoopy = {
species: "beagle"
age: 10
};

// help make buddy using constructor notation
// buddy is a "golden retriever" and is 5 years old
var buddy = new Object();
buddy.age=5;
buddy.species="golden retriever"

got syntax error and do not know what when wrong? plz help and ty.


#2

var snoopy = {
 species: "beagle"
 age: 10
};

Remember that in Objects, your separate properties with a comma " , " similar to how you would normally end a line of code with a semi-colon " ; ". I hope this helps!