You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if we will push any array in any array then which array we are pushing that wiil take as a array element will create 2d array means in array a array at a position of first array
// heros.push(dc_heros)
// by use flat prototype we can
// console.log(heros.flat(1));
// we could also use concate for merge array
let newarr = heros.concat(dc_heros)
console.log(newarr);
// here we learn push will work on existing array and will return after work but concat will give us new array after work