declare an empty object in javascript code example
Example 1: declare empty object javascript
var objectA = {} //This is an object literal // NB: Preferred Way
var objectB = new Object() //This is the object constructor
Example 2: javascript create object empty
var empty_obj = {};