Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript JavaScript Objects Object Basics Create an Object

Thomas Ma
Thomas Ma
15,199 Points

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
210,108 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.

Thomas Ma
Thomas Ma
15,199 Points

where do you put the missing operator

Thomas Ma
Thomas Ma
15,199 Points

nevermind i did it

Steven Parker
Steven Parker
210,108 Points

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