var person = {fname: "John", lname: "Doe", age: 25};for (x in person) { alert("key"+x) alert("value"+person[x]);}