Q:

how to add one array element to another array. for example add ganguly to arrayA and delete sachin there

 var arrayA = [ {"name":"sachin","location":"mum"} ]; 
 var arrayB = [ {"name":"Ganguly","location":"mum"} ]; 
 var newArray = arrayA.push(JSON.stringify((arrayB[0].name)));
 console.log(newArray); console.log(arrayA);`

A:

if you dont want to create new array then:
var arrayA = [ {"name":"sachin","location":"mum"} ]; 
var arrayB = [ {"name":"Ganguly","location":"mum"} ]; 
arrayA[0].name = arrayB[0].name;
console.log(arrayA);`

