how to push to javascript array code example
Example: pushing to an array
array = ["hello"]
array.push("world");
console.log(array);
//output =>
["hello", "world"]
array = ["hello"]
array.push("world");
console.log(array);
//output =>
["hello", "world"]