11/13 object Any help will be appreciated :)


#1

I'm getting Syntax Error. What is wrong with my code?

// 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;


#2

your problem is in var buddy = new.Object

take off the period after new and it should look like this
var buddy = new Object();


#3

Thanks! Really appreciate your help.