I have two JSON objects as follows.
var j1 = {name: 'Varun', age: 24};
var j2 = {code: 'NodeJS', alter: 'C++'}
I need to update JSON j1 with j2.
Desired output
{name: 'Varun', age: 24, code: 'NodeJS', alter: 'C++'};
Is there any inbuild function in NodeJS
to do this, instead of writing our own code.
Thanks and Regards,
Varun