js add to associative array 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':[]};