JavaScript do...while Loop
JavaScript do...while Loop
The do...while statement is used to define a code block to be executed once and then repeated as long as a condition is true. It is required when we want the code to run at least one time.
Syntax:-
Its syntax is:-
do {
// code block to be executed
}
while (condition);