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 trialnawlins34
24,783 PointsBummer 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 Severude
Full Stack JavaScript Techdegree Graduate 71,350 PointsJust one small modification in your loop should do it.
w <= 156;
nawlins34
24,783 PointsDale, 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
18,814 PointsHe originally posted the answer as a comment on your question. I've changed it to an answer so you may mark it as best. :)