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
Aliayub Ali
3,495 PointsSome one answer this please.
is't possible that I only run or execute do loops in any way regardless my code. for example var count=0; do{ document.write("this iteration"+counter+"<br>"); count++; }
1 Answer
Brendan Whiting
Front End Web Development Techdegree Graduate 84,738 PointsYou could have a while condition that's just true:
var count=0;
do {
document.write("this iteration"+counter+"<br>");
count++;
} while (true);
But be careful, it looks like you've created an infinite loop that will cause the script to crash.
Aliayub Ali
3,495 PointsAliayub Ali
3,495 PointsThank you; break;