jacvascript methods for looping code example
Example: looping in javascript
for (initialization; test condition; iteration statement) {
Statement(s) to be executed if test condition is true
}
for (initialization; test condition; iteration statement) {
Statement(s) to be executed if test condition is true
}