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 trialBrittany D
1,767 PointsWhen using .append can you not put in more than one string/bool/int etc. in the parameter?
Not sure what I am doing wrong
var todo = ["Learn Swift", "Build App", "Deploy App"]
todo.append ("Debug App", "Fix App")
todo += ["Debug App", "Fix App"]
1 Answer
Jhoan Arango
14,575 PointsHello:
When using the append method you can only add one item at a time, For a better explanation you can click Here, where someone had a similar question.
let me know if you understand better after.
Brittany D
1,767 PointsBrittany D
1,767 PointsOk, thank you. I eventually figured it out after a few hours.