uses (for) loop in javascript code example
Example 1: java script loop
clear rectangle
Example 2: for loop in javascript
For printing 0 to 9
you can write like below also
var i;
for (i = 0; i < 10; i++) {
console.log(i);
}
clear rectangle
For printing 0 to 9
you can write like below also
var i;
for (i = 0; i < 10; i++) {
console.log(i);
}