Soopy & Buddy can't find mistacke


#1

Please help, why is this not running? Thanks.

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

While constructing an object using literal notation, you have to use a colon to seperate property name and property value like this:

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

Change your

to

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

#3

ups! i'm clearly blind. thanks 100x