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

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.