For in const person = { name: 'John', age: 30, city: 'New York' }; for (let key in person) { console.log(key + ': ' + person[key]); } For-of const colors = ['red', 'green', 'blue']; for (let color of colors) { console.log(color); }