 # do..while loop

Hi, i have problem with quiz. The quiz say i need to loop 10 times, but i already input the number '10' into the while parenthesis, still doesn't work, Can someone tell me whats going on with this question? PRO
```var x = 0;
do {
console.log('I love JavaScript');
x += 1;
} while ( x <= 9 )
```

The loop executes before checking the condition. The first log x = 0. Then there are logs for x = 1 through 9 including 9 for a total of 10. Sorry for the late reply, thank you for the reply and thank you so much KRIS! But i still have question if the loop executes before checking the condition, why the example below in the while parenthesis, doesnt appear x<=12, but x<= 15?

var x = 1; do { console.log('#' + x); x += 2; } while ( x <= 15 ) (This question also from the quiz) var counter = 0; { console.log(counter); counter += 1; } (counter < 10);

So, i dont know i catch your words. But, according to your example, in this question, only log out 0 1 2 3 4 5 6 7 8 9, right?

at the first the var x = 1 is also count into the list? right?