// ex 1
<script>
var car = {
type:"Fiat",
model:"500",
color:"white"
};
document.write(car.type +" "+car.model+" "+car.color)
</script>
// ex 2
<script>
var a ={
fname : "Rohit",
lname : "Kumar",
age : 16,
Marks : 45.5
}
document.write(
"Name : "+a.fname+" "+a.lname+" <br>"+
"Age : "+ a.age +" <br>"+
"Marks : "+ a.Marks +" <br>"
)
</script>