Javascript – Assume I have 2 objects & according to them I want new object
const data = { name : "teahyung", fatherName : "kim-ji-hyung", age : 26 } const data1 = { name : "jangkook", fatherName : "kim-ji-hyung", age : 23 } ans = { name : { old : "teahyung", new : "jangkook"…