# While loops

A while loop runs while the value of i is still truthy.

var i = 1;

while(i < 10) {
console.log(i);
++i;
}