How to create a new object in JavaScript?

Total Post:5

Points:25
 2548  View(s)
Ratings:
Rate this:
  1. 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