Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

declare empty object javascript

var objectA = {} //This is an object literal // NB: Preferred Way

var objectB = new Object() //This is the object constructor
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #declare #empty #object #javascript
ADD COMMENT
Topic
Name
9+4 =