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 trialNathan evans
3,775 PointsWHATT ??????
look i know the 160 is wrong but i tried 156 and it said that i was calling the console.log() function 152 times which is stupid and doesnt make sense but im sure ill figure it out in lie 30 seconds after i post this
for (var x=4; x<160; x+=1) {
console.log(x);
}
1 Answer
martinjones1
Front End Web Development Techdegree Graduate 44,824 PointsDon't forget to add the equals sign after the less than in the comparison, so it will look like that below:
for (var x = 4; x <= 156; x++) {
console.log(x);
}