object literals in Javascript

A JavaScript object literal is like a comma separated name value pairs .

Ex: var myObject={name:”narendra”,height:180};

We can access the properties as myObject.name which gives “narendra”