How do you assign object properties?

Answers were Sorted based on User's Feedback



How do you assign object properties?..

Answer / m_xyz

var obj=new Object();
obj["age"]=18; or obj.age=18

Is This Answer Correct ?    19 Yes 0 No

How do you assign object properties?..

Answer / team sam onn

var obj=new Object();
obj["age"]=18; or obj.age=18

Is This Answer Correct ?    7 Yes 0 No

How do you assign object properties?..

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

Post New Answer

More JavaScript Interview Questions

just for testing

0 Answers   IBM,


Why jquery is used instead of javascript?

0 Answers  


How do I open javascript in browser?

0 Answers  


Enumerate the differences between Java and JavaScript?

0 Answers  


How you can modify XAML content from JavaScript in Silverlight?

0 Answers  


What are the difference between javascript and jquery?

0 Answers  


What are the types of variables in javascript?

0 Answers  


How to test 404 page in QA

0 Answers  


How to write html code dynamically using JavaScript?

0 Answers  


how can we retrieve value from one database server and store them another database server using sql server code

0 Answers   HP,


What are all the types of Pop up boxes available in JavaScript?

0 Answers  


How do you know if a set of points is a function?

0 Answers  


Categories