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
Wade Reeves
Courses Plus Student 223 Pointsarray length
i'm stuck on finding out how to write the length for my array code.
this is what i'm getting The method that returns the length of an array wasn't called. If you need help, consult the documentation!
5 Answers
samiff
31,206 PointsHey Wade, I could probably help you if you were working in JavaScript, but that doesn't sound like the case. Please add what language or section you are working on and someone in the community can surely help with this I'm sure.
Wade Reeves
Courses Plus Student 223 Pointsi'm stuck on getting to know arrays code challenge. the 3rd question asked me to find the length of the array
Ben Jakuben
Treehouse Teacher@Wade, it sounds like you're working on iOS; is that correct? If so, Amit's intention was to have you do a little research to figure out the answer using Apple's documentation.
Check out the docs for NSArray Reference from Apple. You'll want to look at the available methods and just might find what you're looking for under "Querying An Array".
Wade Reeves
Courses Plus Student 223 Pointsi did look there and did not see anything about finding the 'length'
Ben Jakuben
Treehouse TeacherThe length of the array can also be referred to as the count of items inside it. Check out this method. I think Amit also covers this in the next video in the stage. :)