11/33 SyntaxError: Unexpected identifier


#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.species: "golden retriever";
buddy.age: 5;

What am I doing wrong?


#2

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.species = "golden retriever";
buddy.age = 5;

Put a comma after "beagle"
When you are using the constructor notation you have to put "=" instead of ":"