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 2.0 Collections and Control Flow Introduction to Collections Working with Arrays

Aaresh Jalnawalla
Aaresh Jalnawalla
2,363 Points

I get a message saying "Oops! It looks like task 1 is no longer passing." This happens while I'm on the 2nd task. Help

After completing the 1st task I get this message during the second task and says go back to the 1st task. When I press the help button in the 2nd task nothing happens. So I have to go back to the 1st task and click help. What is this error for its unclear.

arrays.swift
// Enter your code below


var arrayOfInts = [0,1,2,3,4,5,6]


arrayOfInts.append(7)

arrayOfInts += [8]

2 Answers

Thurman Ward
Thurman Ward
2,718 Points

I am having the same problem too

Aaresh Jalnawalla
Aaresh Jalnawalla
2,363 Points

I found the answer to my own question.

//This code worked. I watched all 3 videos on arrays "again", to learn what I missed out on. In the previous code I did not explicitly mention [Int] to denote Integers.

var arrayOfInts: [Int] = [0,1,2,3,4,5]

//once you mention Int the code on the 2nd challenge works accepts your result. Its confusing and overwhelming as a beginner and it should have stopped you on the first challenge itself.