add in array node js code example
Example 1: pushing to an array
array = ["hello"]
array.push("world");
console.log(array);
//output =>
["hello", "world"]
Example 2: how to add object to list in javascript
var a=[]
var b={};
a.push(b);
array = ["hello"]
array.push("world");
console.log(array);
//output =>
["hello", "world"]
var a=[]
var b={};
a.push(b);