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

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.