while
Available in ES 2009.
This does not have to be terminated with a semicolon.
while(condition) {
// Code to be executed
}
pre-tested loop
the condition expression is evaluated before executing the body of the loop
var i = 1
while (i < 10) {
i++
}
Looping an Array
© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext