append to array js

JavaScript
var colors= ["red","blue"];
	colors.push("yellow"); //["red","blue","yellow"]var colors=["red","white"];
colors.push("blue");//append 'blue' to colorsarray.push(element_to_push);var fruits = ["222", "vvvv", "eee", "eeee"];

fruits.push("Kiwi"); let items = [1, 2, 3]
items.push(4); // items = [1, 2, 3, 4]const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
Source

Also in JavaScript: