[Solved] Append one object to another one [duplicate]


For javascript its object not python like dictionary :P, Just use Spread Syntax to get your job done.

existingData = {"School Name" : "Albert"}
newData = {"Teacher Name" : "Ms. Mithcell"}
result = {...existingData, ...newData};
console.log(result);

solved Append one object to another one [duplicate]