javascript loop within html code example
Example 1: javascript for loop
for (var i; i < 10; i++) {
}
Example 2: for of loop javascript
const array1 = ['a', 'b', 'c'];
for (const element of array1) {
console.log(element);
}
// expected output: "a"
// expected output: "b"
// expected output: "c"