JavaScript Append Element a Array
var colors= ["red","blue"];
colors.push("yellow");
Friendly Hawk
var colors= ["red","blue"];
colors.push("yellow");
var array = [0,1,3];
array.append(5);
console.log(array); // [0,1,3,5]
const sports = ['Football', 'Tennis']
sports.push('Basketball') // => ['Football', 'Tennis', 'Basketball']
var arr1 = ["Hello"," "];
var arr2 = ["World","!"];
var both = arr1.concat(arr2);
//both = ["Hello"," ","World","!"];
var colors=["sajad","ali"];
colors.push("reza");//append 'blue' to colors