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 trialJakub Blazewicz
429 PointsHow is that line ; let descardedValue = arrayOfInts.remove(at: 5) wrong?
I don't understand why this line is wrong
// Enter your code below
var arrayOfInts = [1,2,3,4,5,6]
arrayOfInts.append(7)
arrayOfInts += [8]
let value = arrayOfInts[4]
let descardedValue = arrayOfInts.remove(at: 5)
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHi Jakub,
You're syntax is spot on.
However, you have a small spelling error for the final variable name. Challenges are extremely picky and, yes, even something like a spelling error will cause the task to get the Bummer
.
You have descardedValue
with an 'e' instead of an 'i' discardedValue
. Once that's fixed up, it all passes!
Nice work! :)