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

What is lazy loading in javascript?

0 Answers  


What is use strict in javascript?

0 Answers  


What are the ways to define a variable in javascript?

0 Answers  


Is jquery easier than javascript?

0 Answers  


How to test 404 page in QA

0 Answers  






What is the need of javascript?

0 Answers  


Who introduced javascript?

0 Answers  


How do you round a value in javascript?

0 Answers  


What is the most widely used programming language?

0 Answers  


What is difference between array.splice() and array.slice() method in javascript?

0 Answers  


How can you identify a function?

0 Answers  


What is the output of 10+20+”30″ in JavaScript?

0 Answers  


Categories