+ 1
Javascript module 3 quiz
Shouldn't the answer be 5? var x=0; while (x<6) { x++; } document.print(x);
3 Respostas
0
It is 6 because loop ends when x is 6.
0
The loop is going on for as long as the x is not 6 so it ends exactly when x == 6.
0
Indeed. My confusion