How do you assign object properties?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main uses of javascript?

479


What does js stand for?

472


What is undefined value means in javascript?

561


Which software is best for javascript?

539


What is scope of variable in javascript?

483






What is output of “20” + 20 + 20 and “20” + ( 20 + 20)? In javascript?

586


What does question mark mean in react?

477


Explain javascript event delegation model?

525


What is scope chain in javascript?

505


What is strict mode in javascript?

554


How can an HTMLCollection be traversed?

549


Why javascript is fast?

470


What is prototype in javascript and how do you use it?

443


What is a noscript tag?

470


How to add/remove properties to object dynamically in javascript?

527