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.

iOS Swift Basics (retired) Collections What is an Array?

idk

idk

arrays.swift
var  todo = [ "Learn Swift" ,"Buid App" ,"Deploy App" ]

1 Answer

Dave Berning
Dave Berning
17,365 Points

Hi anis ahmed, this is the third question I've seen from you in the forum with "idk" as you're title and description. Please give a descriptive title and please provide context to the problem you're experiencing. Without any of that it's a lot harder to help find a solution. Anyway, I think this might help.

var todo = ["Learn Swift", "Build App", "Deploy App"]

println(todo.count)

You also have a typo which might also be giving you an error for the code challenge.