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 difference between undefined variable and undeclared variable?
How to get the primitive value of a string in Javascript?
What are the different actions that are performed using javascript?
How to convert javascript date to iso standard?
What is differential inheritance?
Why do we need javascript?
What is a function constructor?
How to validate email in javascript?
Write the point of difference between web-garden and a web-farm?
Is JavaScript case sensitive? Give an example?
In a pop-up browser window, how do you refer to the main browser window that opened it?
How do I open javascript console?