1var person = {
2 firstName: "john",
3 lastName: "doe",
4 age: 45,
5 placeOfBirth: "somewhere"
6}
7
8for(var key in person) {
9
10 var p = document.createElement("p");
11 p.innerHTML = person[key];
12 document.body.appendChild(p)
13
14}