9 January 2014

How do you create a new object in JavaScript?

var obj = new Object(); 
or
 var obj = {};

No comments:

Post a Comment