javascript array add

JavaScript
var colors= ["red","blue"];
	colors.push("yellow"); //["red","blue","yellow"]var colors=["red","white"];
colors.push("blue");//append 'blue' to colorsconst array1 = ['a', 'b', 'c'];
const array2 = ['d', 'e', 'f'];
const array3 = array1.concat(array2);array.push(element)some_array = ["John", "Sally"];
some_array.push("Mike");

console.log(some_array); //output will be =>
["John", "Sally", "Mike"]// example:
let yourArray = [1, 2, 3];
yourArray.push(4); // yourArray = [1, 2, 3, 4]

// syntax:
// <array-name>.push(<value-to-add>);
Source

Also in JavaScript: