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 web sites do you feel use javascript most effectively (i.e., Best-in-class examples)? The worst?

0 Answers  


Is there any difference between javascript and jscript?

0 Answers  


What is question mark in javascript?

0 Answers  


How are javascript and ecma script related?

0 Answers  


What is difference between deep and shallow object coping in javascript?

0 Answers  






How to call a function in every x seconds in javascript?

0 Answers  


What is javascript? List some data types supported by javascript?

0 Answers  


In Javascript are calculations with fractional numbers guaranteed to be precise?

0 Answers  


Write a Program using Servlet and JDBC for developing online application for displaying the details of Cars owned by the residents in XYZ society. Make necessary assumptions and create appropriate databases

0 Answers   Ignou,


What is local and global scope?

0 Answers  


Write a program to exaplain the deferred scripts using event handlers in javascript.

0 Answers  


How do you write an event emitter base class that allows you to add event listeners?

0 Answers  


Categories