for (let i = 0; i < 5; i++) {
console.log(i);
}
for (let i = 0; i < 3; i++) {
for (let j = 0; j < 2; j++) {
console.log(i, j);
}
}
let count = 0;
while (count < 3) {
console.log(count);
count++;
}
let num = 5;
do {
console.log("Number:", num);
num--;
} while (num > 0);
const fruits = ['apple', 'banana', 'cherry'];
for (let i = 0; i < fruits.length; i++) {
console.log(fruits[i]);
}
const numbers = [3, 6, 9];
for (let i = numbers.length - 1; i >= 0; i--) {
console.log(numbers[i]);
}
for (let i = 0; i < 10; i++) {
if (i === 5) {
break;
}
console.log(i);
}