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 trialTim Holt
3,409 PointsIncorrect 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.
Tim Holt
3,409 PointsHi 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.
Marcus Parsons
15,719 PointsExcellent! I'm glad you figured it out, Tim. =]
Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsHey Tim,
What code did you put in to produce that error?