#javascript #JavaScript / Repeat Statements / while, do - while, for There are three iteration statements in JavaScript: while, do - while, and for. while grammar var i = 0; while ( i < 10 ) { // do something i++; } It runs from 0 to 9 for i and if i is 10 it doesn't run and goes on. Note that you must include i++ which increments i. If i++ is missing, the value of i will always be 0, so it will..