How will you create new object in javascript?

 Posted by Rajni.Shekhar on 4/12/2012 | Category: JavaScript Interview questions | Views: 1627 | Points: 40
Answer:

In object variable, you can pass any value like stirng, integer.

var obj=new Object();

obj="my string";
document.write(obj);


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response