how to push data into array 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");