11. Putting it all together...?


#1


What's wrong with my code???


https://www.codecademy.com/en/courses/spencer-sandbox/1/6?curriculum_id=506324b3a7dffd00020bf661

Oops, try again.
There was a problem with your syntax.

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

when using the literal notation (for snoopy), after the properties (species, age) there should be a colon, not a equal sign


#3

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