let count = 0;
while (count < 5) {
console.log(`Count is ${count}`);
count++;
}
let num = 1;
do {
console.log(`Number is ${num}`);
num++;
} while (num <= 5);
for (let i = 0; i < 5; i++) {
console.log(`Iteration ${i}`);
}
const person = { name: "John", age: 30, city: "New York" };
for (const key in person) {
console.log(`${key}: ${person[key]}`);
}
const colors = ["red", "green", "blue"];
for (const color of colors) {
console.log(`Color: ${color}`);
}