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 lazy loading in javascript?
What is use strict in javascript?
What are the ways to define a variable in javascript?
Is jquery easier than javascript?
How to test 404 page in QA
What is the need of javascript?
Who introduced javascript?
How do you round a value in javascript?
What is the most widely used programming language?
What is difference between array.splice() and array.slice() method in javascript?
How can you identify a function?
What is the output of 10+20+”30″ in JavaScript?