Home > DeveloperSection > Interviews > How do you assign object properties?

Posted on    December-07-2010 12:00 AM

 JavaScript JavaScript 
 1 Answer(s)
  847  View(s)
Rate this:

Amit Singh

Total Post:565

Posted on    December-07-2010 1:00 AM

we create object as

var obj = new Object(); or var obj = {};

we assign object properties as: 

obj["name"] = "amit" or obj.name = "amit".

Don't want to miss updates? Please click the below button!

Follow MindStick