javascript for (i = 10,) code example
Example 1: loop javascript
// infinite for loop
for(let i = 1; i > 0; i++) {
// block of code
}
Example 2: how to make a javascript for loop
var tops = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144];
for (let i = 0; i < tops.length; i++) {
document.write(tops[i] + "tops");
}