JavaScript do while loop is used to iterate over the statements, Here is the code for do while loop: do{ document.write(" Counter : " + count + "
do while
"); count++; } while (count < 10); See the code snippet: