append data get array

JavaScript
var colors=["red","white"];
colors.push("blue");//append 'blue' to colors
Source

Also in JavaScript: