Use while when you might not need to run at all:
while (hasMoreItems()) {
processItem()
}
Use do-while when you must run at least once:
do {
showMenu()
choice = getChoice()
} while (choice !== "quit")
Most loops are while or for. Use do-while only when the "at least once" guarantee matters.