11. Putting it all together


I have been receiving a SyntaxError: missing } after property list. Is that not what the bracket after snoopy age is?

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


Whilst your syntax is correct in the sense of correct use of { and } review your object's syntax..

Be sure to read this to get an idea of how one should structure an Object :smiley:

If you need further prompting let me know with a reply :slight_smile:


Ahh, instead of the semicolon after "beagle" I needed a comma.


Bravo dude! Keep at it! :computer::blue_book::chart_with_upwards_trend::alien::v::muscle:


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