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