How to dynamically add elements to js array?
For example, we first created an empty array:
var mas = {}; and in the end got this:
{ "name1" : val1 "name2" : val2 "name3" : val3 } I tried to just write like this:
mas.name1 = val1; does not exceed(
What to do ?