how to push data in associative array in javascript es6 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':[]};