Answers for "javascript pushing to an array"

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

Code answers related to "javascript pushing to an array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language