do - while

Available in ES 2009.
This does have to be terminated with a semicolon.

do { 
    // Code to be executed

post-tested loop (executed at least once)
the condition expression is evaluated after executing the body of the loop

do { 
} while (i < total);

Looping an Array

Arrays > Loops

© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext