JS -Array Element hinzufügen
array.push(element)
Common Mynah
array.push(element)
var fruits = ["222", "vvvv", "eee", "eeee"];
fruits.push("Kiwi");
array = ["hello"]
array.push("world");
let array = ["A", "B"];
let variable = "what you want to add";
//Add the variable to the end of the array
array.push(variable);
//===========================
console.log(array);
//output =>
//["A", "B", "what you want to add"]
const array1 = ['a', 'b', 'c'];
const array2 = ['d', 'e', 'f'];
const array3 = array1.concat(array2);
var arrayA = [1, 2];
var arrayB = [3, 4];
var newArray = arrayA.concat(arrayB);