Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

key value pair array in javascript

var myArray = {id1: 100, id2: 200, "tag with spaces": 300};
myArray.id3 = 400;
myArray["id4"] = 500;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #key #pair #array #javascript
ADD COMMENT
Topic
Name
5+7 =