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”
I am writing my experiences and learning to help others
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”