javascript declare variable as empty object 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