In this example, new way to create object and assign them values and print in paragraph tag: var person
= new Object(); person.firstName
= "Michael"; person.lastName
= "Voughan"; person.age
= 50; person.eyeColor
= "blue"; document.getElementById("sample").innerHTML
= person.firstName + " is " + person.age + " years old.";