How do you assign object properties?
Answers were Sorted based on User's Feedback
Answer / m_xyz
var obj=new Object();
obj["age"]=18; or obj.age=18
| Is This Answer Correct ? | 19 Yes | 0 No |
var obj=new Object();
obj["age"]=18; or obj.age=18
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / rubin thomas
var regiondb_stcty = new Object()
regiondb_stcty["Andaman and Nicobar"] = [ {value:"Port
Blair", text:"Port Blair"}];
u can do assign option elements with this object;
like a state city dyanmic population.
email me if u want thsi code
| Is This Answer Correct ? | 1 Yes | 1 No |
How do you assign object properties?
Explain about session? Where it runs & what are different types of session handling?
What are the uses of javascript in web page designing?
What are JavaScript types?
How do you name a variable in javascript?
Explain a story about javascript performance problems?
Can I learn javascript without knowing java?
What are javascript objects?
what is the different between html and java?why the java is required in internet?
How can you create an Object in JavaScript?
If 2 methods have same name and same number of parameters, which one will be executed first?
How to convert “20” to number in javascript?