Welcome to the Treehouse Community
Looking to learn something new?
Mahmoud Rajabzadeh-Mashhadi489 Points
I can't get this work. Thanks.
// Enter your code below var arrayOfInts = [1, 2, 3, 4, 5, 6] arrayOfInts.append(7) arrayOfInts +=  let value = arrayOfInts discardedValue = arrayOfInts.removeAtIndex(5)
Tobias Helmrich31,601 Points
you almost got it right! You just forgot to declare the constant discardedValue with the let keyword.
It should work if you write
let discardedValue = arrayOfInts.removeAtIndex(5)