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 trialAndrii Gorokh
14,809 PointsThis is my code for Bonus challenges
Here is my code for challenge 5, please give some feedback: With while loop
let count4;
while (true) {
count4 = Math.floor(Math.random()*9);
text+=count4 + ' ';
if (count4===8) {
break
}
}
With do while
let iseight = false;
let count4;
do {
count4 = Math.floor(Math.random()*9);
text+=count4 + ' ';
if (count4===8) {
iseight=true;
}
} while (!iseight)