const people = [{ name: 'Karl', location: 'UK' }, { name: 'Steve', location: 'US' }]; for (const person of people) { console.log(person.name); // "karl", then "steve" console.log(person.location); // "UK", then "US" }