while
Execute the code inside the loop as long as the statement is true.
var width = 1;
var limit = 200;
while (width <= limit){
console.log(width);
width++;
}
copy
Execute the code inside the loop as long as the statement is true.
var width = 1;
var limit = 200;
while (width <= limit){
console.log(width);
width++;
}
copy