Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Objects Object Basics Create an Object

Add three properties to this object: animal with a value of dog, an age property with the value 3, and a breed property

Please help

script.js
var paris {
    animal:"dog",
    age: 3,
    breed:"pug "         
};

1 Answer

Steven Parker
Steven Parker
229,670 Points

The properties are fine, but in task 1 the object was created in a "variable named addy", but the name seems to have been changed in this code to "paris".

Also, the assignment operator (=) is missing.

where do you put the missing operator

nevermind i did it

Steven Parker
Steven Parker
229,670 Points

Thomas Ma — Glad to help. You can mark a question solved by choosing a "best answer".
And happy coding!