Putting it all together


#1

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

var snoppy = {
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";

I did everything right, but the code does not work!


#2

You sure you are typing the name right?


#3

Exactly! You're right, I was not paying attention :confused:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.