Welcome to the Treehouse Community
Looking to learn something new?
David Zakaryan512 Points
Where is my mistake
I don't see my mistake here... also all the other steps were correct, why is this one wrong???
var todo = ["Learn Swift", "Build App", "Deploy App"] todo.append("Debug App") todo.append("Fix Bugs") todo.removeAtIndex(1) let item = todo.removeAtIndex(1) todo.insert("Learn iOS", atIndex: 3)
The task wants you to insert the new string at the second position in the array. Because Swift uses 0-based indexing, you're adding it at the fourth position (0 is first, 1 is second, 2 is third, 3 is fourth). So you should use
Also, I noticed that you've removed two items from the list in previous step. That's different than what I did, which was to remove one item at index 2. That might also be causing problems with the grading.