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

Osama Basha
Osama Basha
185 Points

HELP!!

I NEED TO KNOW THIS...HELP

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

let item;subscript removeAtIndex ["Fix Bugs"]

2 Answers

Osama,

It's asking you to Append the items into the Array.

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

todo.append("Debug App") 
todo.append("Fix Bugs")
Nick Jones
Nick Jones
2,086 Points

Hi Osama

Would you be able to let me know what it is you're trying to do exactly with your array? Once I have a bit more information I should be able to help