## For...In
To access data within an object, use a `for...in` loop. `for...in` iterates over each key or property name in the object:
```js
const person = {
name: 'Edward',
city: 'New York',
age: 37,
isStudent: true
}
// a different value gets assigned to key each time through the loop
for (let key in person) {
console.log(person[key])
}
/*
'Edward'
'New York'
37
true
*/
```
With a `for...in` loop bracket notation **must** be used to access a property value:
```js
for (let key in person) {
console.log(student[key])
}
```