<html>
<body>
<h1>JavaScript Objects</h1>
<h2>Display Properties</h2>
<p id="demo"></p>
<script>
// Create an Object
const person = {
name: "John",
age: 30,
city: "New York"
};
// Build a Text
let text = "";
for (let x in person) {
text += person[x] + " ";
};
// Display the Text
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>