Answers for "javascript add item to list"

22

add item to list javascript

var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi"); // Fruits = ["Banana", "Orange", "Apple", "Mango", "Kiwi"];
Posted by: Guest on March-03-2020
48

javascript pushing to an array

some_array = ["John", "Sally"];
some_array.push("Mike");

console.log(some_array); //output will be =>
["John", "Sally", "Mike"]
Posted by: Guest on November-12-2019
2

javascript add item to list

var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.push("Kiwi");
Posted by: Guest on December-02-2019
-2

how to add list in javascript

print(list)
Posted by: Guest on December-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language