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 Simplify Repetitive Tasks with Loops Create a for Loop

Bummer Your code took too long to run....?

May I have a 2nd pair of eyes on this for loop to see if I'm missing something? Unless the variable literally has to be the letter "i" I don't see what I'm doing wrong.

for (var w = 4; 4 <= 156; w++) {
      console.log(w);
}

2 Answers

Dale, thank you! Clearly I've spent too many hours looking at code, lol!

Why don't I have the option to vote your replay as best answer?

rydavim
rydavim
18,814 Points

He originally posted the answer as a comment on your question. I've changed it to an answer so you may mark it as best. :)