JavaScript Objects

Display Properties with JSON

// Create an Object
    const person = {
      name: "John",
      age: 30,
      city: "New York"
    };
    
    // Display JSON
    document.getElementById("demo").innerHTML = JSON.stringify(person);