js add item to array

JavaScript
var colors=["red","white"];
colors.push("blue");//append 'blue' to colorsvar colors= ["red","blue"];
	colors.push("yellow"); array.push(element)var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi"); // Fruits = ["Banana", "Orange", "Apple", "Mango", "Kiwi"];const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
Source

Also in JavaScript: