{"ScriptPreparationCode":"var firstObject = {\r\n \u0022id\u0022: \u00222d10ffad-678b-4f9b-9d7e-1fd57879928d\u0022,\r\n \u0022name\u0022: \u0022Gon Freecss\u0022,\r\n \u0022age\u0022: 100,\r\n \u0022wallet\u0022: {\r\n \u0022CNY\u0022: {\r\n \u0022balance\u0022: 94306.78,\r\n \u0022exchangeRate\u0022: 4.45\r\n },\r\n \u0022USD\u0022: {\r\n \u0022balance\u0022: 106.84,\r\n \u0022exchangeRate\u0022: 29.96\r\n },\r\n \u0022NTD\u0022: {\r\n \u0022balance\u0022: 89171098.51,\r\n \u0022exchangeRate\u0022: 1\r\n }\r\n }\r\n }\r\nvar secondObject = {\r\n \u0022id\u0022: \u0022b8eb86c2-1386-4b91-a87f-a3b16f6ebca5\u0022,\r\n \u0022name\u0022: \u0022Killua Zoldyck\u0022,\r\n \u0022age\u0022: 96,\r\n \u0022wallet2\u0022: {\r\n \u0022CNY2\u0022: {\r\n \u0022balance2\u0022: 59390.08,\r\n \u0022exchangeRate2\u0022: 4.45\r\n },\r\n \u0022USD2\u0022: {\r\n \u0022balance2\u0022: 446.76,\r\n \u0022exchangeRate2\u0022: 29.96\r\n },\r\n \u0022NTD2\u0022: {\r\n \u0022balance2\u0022: 49592399.77,\r\n \u0022exchangeRate2\u0022: 1\r\n }\r\n }\r\n }","TestCases":[{"Name":"Using the spread operator","Code":"const finalObject = {\r\n\t...firstObject,\r\n \t...secondObject\r\n};","IsDeferred":false},{"Name":"Using Object.assign","Code":"const finalObject = Object.assign(firstObject, secondObject);","IsDeferred":false}]}