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

Property

I am getting no where in figuring out how to access a property in the quiz after doing arrays. I can see what to do to find an object or find the output of the script but How to separate a property I have not been able to figure it out. I can guess it right once in a while but i do not know what rule is applied. I do not have a great memory but want to know what I am doing before moving forward.

3 Answers

What quiz question are you stuck on? As for accessing a property you can do that via dot notation like so...objectName.propertyName. So if you were trying to access the length of your array it would be myarray.length with length being the property you were accessing. Array's are objects just like variables, etc.

That was the right answer thank you. OK I will have to come back to redo the last few videos more.I am doing college tests this week.

Great thank you.