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 Modifying an Array

Ryan Heuer
Ryan Heuer
1,230 Points

Stuck on stage 4, quiz question 3

what am I doing wrong? Heres my code:

var todo = ["Learn Swift", "Build App", "Deploy App"] todo.append("Deploy App") todo.append("Fix Bugs") let item = todo.removeAtIndex(2) todo.insert("Learn iOS", atIndex: 2)

Ricardo Forrest
Ricardo Forrest
1,461 Points

Hey IM having trouble with this, any solutions?

We need to append a few more items to our todo array. Append the following strings: "Debug App", "Fix Bugs".

1 Answer

Ryan Heuer
Ryan Heuer
1,230 Points

I just fixed it. Thanks anyways! :)