push value in array js 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"]