HOW TO CREATE A NEW OBJECT IN JAVASCRIPT?

Danish Khan

Total Post:5

Points:25
Posted by  Danish Khan
 2113  View(s)
Ratings:
Rate this:
  1. Danish Khan

    Post:5

    Points:25
    How to create a new object in JavaScript?

     We can create a new object in JavaScript by statement

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!