do while loops javascript code example Example: do while loop in javascript do { text += "The number is " + i; i++; } while (i < 10);