can you write a for loop in a while loop code example Example: while loop var i=1; while(i<=10){ document.write(i + "<br>"); i++;}