javascript pushing to an array
snippet in javascript

javascript pushing to an array

user3621

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

console.log(some_array); //output will be =>
["John", "Sally", "Mike"]