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
Andrii Kodola
Full Stack JavaScript Techdegree Student 16,870 PointsInaccuracy in file 1_create_array.js tasks 8 and 9.
Did I understand correctly that in tasks
- Use an array method to REMOVE the LAST element from the array. and
- Use an array method to REMOVE the first element from the array. I have not only to remove these items from an array, but also log them into the console (according to the explanation in the video)?
1 Answer
KRIS NIKOLAISEN
54,974 PointsThere are array methods that not only remove the element but also return the element. If you want to see one in action go here
Andrii Kodola
Full Stack JavaScript Techdegree Student 16,870 PointsAndrii Kodola
Full Stack JavaScript Techdegree Student 16,870 PointsThanks, Kris, I used those to complete the task as it was shown in the video, just wanted to point out this inaccuracy.