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 trialSeth Warner
5,348 PointsOn the quiz "Review Adding and Removing items form arrays". the question "Which array method returns the first", has
the wrong answer. In the video, I believe the gentlemen said "pop" is the method used to remove and return the first value of an array. In the quiz, they have it being shift.
Which is correct??
1 Answer
Guled Ahmed
12,806 PointsThe shift method removes the first element and returns it. The pop method removes the last element and returns it.