add value as array code example
Example 1: add value to array javascript
var fruits = ["222", "vvvv", "eee", "eeee"];
fruits.push("Kiwi");
Example 2: how to add to an array
var ar = ['one', 'two', 'three'];
ar[3] = 'four'; // add new element to ar