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