Home / Javascript Tips Generated By ChatGPT / Adding Elements to Arrays with push in Javascript Add items to the end of an array. Source Code let fruits = ["Apple", "Banana"]; fruits.push("Orange"); console.log(fruits); // ["Apple", "Banana", "Orange"]