View sourcecode

The following files exists in this folder. Click to view.

while.md

1 lines ASCII Unix (LF)
1
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.