Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Mattis Erngren
Mattis Erngren
4,628 Points

Bug 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
Michal Weizman
14,050 Points

Hi 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']; 

I hope this helped...

Mattis Erngren
Mattis Erngren
4,628 Points

That did the trick! Thanks!