9.1. Iteration: for loops (example)
console.log(0);
console.log(1);
console.log(2);
console.log(3);
console.log(4);
// and so on...
//or//
//using for loop iteration:
for (let i = 0; i <= 50; i++) {
console.log(i);
}
//A for loop always contains the following components:
for (initial expression; loop condition; update expression) {
loop body
}