do...while
JavaScript also has a do-while loop. Here the condition is checked after the loop body was executed. This is useful when the condition depends on the outcome of the code in the body.
do {
// The code here will always be executed once and then
// repeatedly while the condition is true.
} while (condition);