to add the values in an array code example
Example: how to insert a value into an array javascript
var list = ["foo", "bar"];
list.push("baz");
["foo", "bar", "baz"] // result
var list = ["foo", "bar"];
list.push("baz");
["foo", "bar", "baz"] // result