push new items to associative array javascript code example
Example 1: js associative array push
var val = 2;
arr['name'].push(val);
Example 2: js associative array push
var arr = {'name':[]};
var val = 2;
arr['name'].push(val);
var arr = {'name':[]};