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

i don't understand this question in this quiz on the do while loop

`` js

var x = 0; do { console.log('I love JavaScript'); x += 1; } while ( x <= )

`` js

i don't understand what would be the answer to get it to run 10 times.

4 Answers

var x = 0;
do {
   x += 1;
   console.log('I love teamtreehouse - ' + x);
} while (x < 10);

no in the quiz u can't alter the operator just the value

What's the link to the quiz?

its ok somebody told me the answer on slack ... thanks anyway.

its ok somebody told me the answer on slack ... thanks anyway.