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 the role of a strict mode in javascript?
What is the main difference between Map collections and other collections such as Set.
How to change style on an element?
name any two javascript functions which are used to convert nonnumeric values into numbers?
How do I link an external javascript file to html?
To write messages to the screen without using "document.write()"?
What is argument objects in javascript & how to get the type of arguments passed to a function?
Is javascript harmful?
What is a closure javascript?
How do you trim in javascript?
what is the source code for sendRedirect method()java Servlet program?
What would you use javascript for?