javascript array push

JavaScript
var fruits = ["Banana", "Orange", "Apple", "Mango"];

fruits.push("Kiwi"); array = ["hello"]
array.push("world");

console.log(array);
//output =>
["hello", "world"]array.push(element)some_array = ["John", "Sally"];
some_array.push("Mike");

console.log(some_array); //output will be =>
["John", "Sally", "Mike"]// initialize array
var arr = [
  "Hi",
  "Hello",
  "Bonjour"
];

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

console.log(arr);var SomeRandomArray = [];
SomeRandomArray.push("Hello, world!");
Source

Also in JavaScript: