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 trialMattis Erngren
4,628 PointsBug in question? (tracking multiple arrays)
https://teamtreehouse.com/library/javascript-loops-arrays-and-objects/tracking-multiple-items-with-arrays/using-array-indices (challenge #2)
So I’ve been stuck on this assignment forever now. I actually think I’m right but that there might be a bug on your end. I do really hope so - otherwise this will be very embarrassing …
The challenge is this one: https://teamtreehouse.com/library/javascript-loops-arrays-and-objects/tracking-multiple-items-with-arrays/using-array-indices
My answer is: var players = ['Jim', 'Shawna', 'Andrew', 'Lora', 'Aimee', 'Nick']; console.log(players[5]);
I’ve tried a bunch of other versions as well, but from what I understand, that should be the right one.
2 Answers
Michal Weizman
14,050 PointsHi Mattis, Could it be that by answring the 2nd challange you deleted the answer for the first one? Because mine passed after typing:
var players = ['Jim', 'Shawna', 'Andrew', 'Lora', 'Aimee', 'Nick'];
console.log(players[0]);
console.log(players[5]);
I hope this helped...
Mattis Erngren
4,628 PointsThat did the trick! Thanks!