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 trialRicardo Gonzalez
324 PointsOk Idk what I am doing wrong because the preview is blank and the note on top wont tell me either what I am doing wrong.
I am not being told what I am doing wrong and I don't know what I am doing wrong help. Sorry for bothering the forums so much today I am just in need of assistance. Thank you CJ for have help me with my previous problems you have been an awesome help today.
var todo = ["Learn Swift","Build App","Deploy App"]
println("todo")
1 Answer
Chase Marchione
155,055 PointsHello again,
You need to use the count method on the todo array, since you want to print out the number of items in the array. What the count method does is count how many items are in the array.
Example code:
var todo = ["Learn Swift","Build App","Deploy App"]
println(todo.count)
And thanks for thanking me! You're quite welcome!