JavaScript appendieren Element an Array
var colors= ["red","blue"];
colors.push("yellow");
Friendly Hawk
var colors= ["red","blue"];
colors.push("yellow");
array = ["hello"]
array.push("world");
console.log(array);
//output =>
["hello", "world"]
array.push(element)
var fruits = ["222", "vvvv", "eee", "eeee"];
fruits.push("Kiwi");
array = ["hello"]
array.push("world");
const arr = ["foo", "bar"];
arr.push('baz'); // 3
arr; // ["foo", "bar", "baz"]