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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Dinasha Rollins](https://secure.gravatar.com/avatar/732bcd07212941ef4d5328ae75a9f3ea?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Dinasha Rollins
1,464 PointsHow do I log the numbers from 100 to 10.
I thought changing the < and > sign that it would work but it is not. Can anyone explain what is going wrong.
var temperatures = [100,90,99,80,70,65,30,10];
var list = '<ol>';
for ( var i = 0; i > list.length; i += 1) {
list +='<li>' + list[i] + '</li>';
list += '</ol>';
console.log(temperatures);
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JavaScript Loops</title>
</head>
<body>
<script src="script.js"></script>
</body>
</html>
1 Answer
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 PointsThere's nothing named "print" defined in this code, and you won't need any HTML tags. You also don't need to create a function.
Just use "console.log" inside the loop to directly log each item from the "temperatures" array.
And check the limit test being used in the conditional clause of the "for" loop.
Dinasha Rollins
1,464 PointsDinasha Rollins
1,464 PointsI did what you told me and i still seem to be getting the answer incorrect how do I upload my new answer to show you
Steven Parker
230,688 PointsSteven Parker
230,688 PointsYou can paste in your code, just use "markdown" formatting. There's a pop-up "cheatsheet" below, or you can watch this video on code formatting.