While /** * Use a while-loop to count to ten */ var x = 0; while(x < 10) { x++; console.log(x); } Reference and read more MDN while Revision history 2014-06-03 (sylvanas) PA1 First try.