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](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/while)



Revision history
------------------------------

2014-06-03 (sylvanas) PA1 First try.

