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 trialMyAccount MyAccount
Courses Plus Student 84 PointsI did EVERYTHING I can think of...
I am NOT sure of of what I did wrong all i can i tried "let println" I tried "var println"if the thing I did wrong was something else, then i would appreciate it if you could help me
var todo = ["Learn Swift","Build App","Deploy App"]
let println = ["Learn Swift"+"Build App"+"Deploy App"]
1 Answer
Chris Shaw
26,676 PointsHi Account 1 Ba,
If you remember from the previous videos, the println
keyword is in reference to a function therefore we need to declare and execute it that way. The second part of the question is to get the total number of items within the todo
array (as explained in the previous video), we can get this via the count
property of the Array
instance in-which todo
is derived from.
println(todo.count)
Happy coding!