for and do while loops code example
Example 1: while loop
var i=1;
while(i<=10){
document.write(i + "<br>");
i++;}
Example 2: while loop
i = 0
while i < 6:
i += 1
if i == 3:
continue
print(i)
var i=1;
while(i<=10){
document.write(i + "<br>");
i++;}
i = 0
while i < 6:
i += 1
if i == 3:
continue
print(i)