add item to list javascript

JavaScript
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi"); // Fruits = ["Banana", "Orange", "Apple", "Mango", "Kiwi"];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"]var colors= ["red","blue"];
	colors.push("yellow"); array = ["hello"]
array.push("world");array.push(element)var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
Source

Also in JavaScript: