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