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

JavaScript JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Iterating through an Array

Tim Holt
Tim Holt
3,409 Points

Incorrect answer hint says to log temperatures in order" but question does not make any reference to order. What the?

Am I missing something with this question? It seems the answer hint suggests the question is asking for the loop to rearrange the items into descending order, but the question clearly doesn't say that.

Hey Tim,

What code did you put in to produce that error?

Tim Holt
Tim Holt
3,409 Points

Hi Marcus,

After re-checking, it turns out my code was wrong. I was logging i instead of temperatures.[i]. My correct code in the end was:

```for( var i = 0; i < temperatures.length; i++ ) { console.log(temperatures[i]);
}

Nevertheless, the answer hint seemed to suggest something else, thus my confusion.

Thanks for taking the time to answer.

Tim.

Excellent! I'm glad you figured it out, Tim. =]