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 web sites do you feel use javascript most effectively (i.e., Best-in-class examples)? The worst?
Is there any difference between javascript and jscript?
What is question mark in javascript?
How are javascript and ecma script related?
What is difference between deep and shallow object coping in javascript?
How to call a function in every x seconds in javascript?
What is javascript? List some data types supported by javascript?
In Javascript are calculations with fractional numbers guaranteed to be precise?
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
What is local and global scope?
Write a program to exaplain the deferred scripts using event handlers in javascript.
How do you write an event emitter base class that allows you to add event listeners?