Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript pushing to an array

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

console.log(some_array); //output will be =>
["John", "Sally", "Mike"]
 
PREVIOUS NEXT
Tagged: #javascript #pushing #array
ADD COMMENT
Topic
Name
7+3 =