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 |
Why it is not advised to use innerhtml in javascript?
What is the use of a form in html page? Is there any way to submit the page without using the form.
What is object cloning
Is javascript hard to learn?
Explain with an example the use of event handlers in javascript.
What Is The Disadvantages Using InnerHTML In JavaScript?
What would be the result of 2+5+”3″?
How to remove duplicates from javascript array?
What is meaning of === in javascript?
Difference Between JavaScript and ECMAScript?
what is the function of public class main ?
What is the reason for wrapping the entire content of a javascript source file in a function book?