How do you assign object properties?

Answer Posted / m_xyz

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

Is This Answer Correct ?    19 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run javascript on my iphone?

477


What is Unobtrusive JavaScript & Why it's Important?

553


Is javascript easier than java?

472


What's Prototypes for JavaScript

1710


I am providing the Online& class room training on Worksoft Certify for SAP/HTML/JAVA using real time scenarios in a real time environment for a real time project, If any one is interested please get in touch with me on aimansaud@gmail.com

1023






How to replace all occurrences of a string in JavaScript?

499


Is javascript the future?

503


How to setting a cookie with the contents of a textbox?

524


what is the different between html and java?why the java is required in internet?

1689


How to import all exports of a file as an object.

508


Explain few difference between null, undefined or undeclared javascript variable?

488


How to create the namespace in javascript?

555


Explain the difference between call() and apply()?

504


What is difference between scripting and programming?

442


What is primitive data type in javascript?

469