append to array js

JavaScript
var colors=["red","white"];
colors.push("blue");//append 'blue' to colorsarray.push(element_to_push);// initialize array
var arr = [
  "Hi",
  "Hello",
  "Bonjour"
];

// append new value to the array
arr.push("Hola");

console.log(arr);var fruits = ["222", "vvvv", "eee", "eeee"];

fruits.push("Kiwi"); const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");var colors= ["red","blue"];
	colors.push("yellow"); //["red","blue","yellow"]
Source

Also in JavaScript: