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 |
What is a noscript tag?
What are the data types supported by javascript?
what is eval pls breif information send me
How do you clear an array in javascript?
What is the use of let & const in javascript?
How to getting values from cookies to set widgets?
Why javascript is called lightweight language?
What is a function constructor?
What is lazy instantiation in java?
What's the Difference Between Class and Prototypal Inheritance?
How does typeof operator work?
Is jquery easier than javascript?