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 trialMike John
3,182 PointsCan anyone please help me with this challenge..!
Can anyone please help me with this challenge..!
var count = 0;
while(count <= 26){
doucment.write( count );
count += 1;
}
1 Answer
Andreas Nyström
8,887 PointsHi.
First of all it should run 26 times. You run it 27 times (index starts at 0 not 1!). So i changed to count < 26 instead of count <= 26. Second you misspelled document. So i fixed that. I also wrote count++ (which is the same as count += 1). Hope this helps buddy. Keep going!
var count = 0;
while(count < 26){
document.write( count );
count++;
}