how to get menu bake using while loop in javascript code example Example: do while loop in javascript do { text += "The number is " + i; i++; } while (i < 10);