JSFiddle - React, Tailwind, and code Playground
by Nalin Sajwan
JavaScript
var a = {
"name": "abcd",
"l_name": "efgh"
};
var b = {
"name": "mnop",
"l_name": "qrst"
};
console.log("[before] a ==> ", JSON.stringify(a, null, 4));
console.log("[before] b ==> ", JSON.stringify(b, null, 4));
b = [a, a = b][0];
console.log("\n\n[after] a ==> ", JSON.stringify(a, null, 4));
console.log("[after] b ==> ", JSON.stringify(b, null, 4));