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

Help with Challenge Task For Modifying Arrays

I keep trying and trying but I can't get it right what should I be doing?

TASK:

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

This is what I put: isn't it right?

arrays.swift
var todo = ["Learn Swift", "Build App", "Deploy App"]
todo.append ("Debug App", "Fix Bugs")

2 Answers

You need to put them on two separate lines

todo.append("Debug App") todo.append("Fix Bugs")

Thanks Man!

Thanks Man!

Hi Kyle You own premium account right? Is it worth getting? I wan't to be able to make iPhone games and publish them to the apps store. Will it work for me?

Hi, I actually just have the standard account. I'm not quite sure what additional features the premium account offers. Have you looked into it?