do - while
Available in ES 2009.
This does have to be terminated with a semicolon.
do {
// Code to be executed
}
while(condition);
post-tested loop (executed at least once)
the condition expression is evaluated after executing the body of the loop
do {
i++
} while (i < total);
Looping an Array
© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext