for-loop



for (INITIALIZE;   CONDITION;   STEP) {

}


examples/js/for_loop.js
"use strict";

var i,j;

for (i=0; i < 6; i++) {
    console.log(i);
}

console.log('---');

for (j=9; j > 6 ; j--) {
    console.log(j);
}