{"ScriptPreparationCode":"var obj = {\r\n \u0027a\u0027: {\r\n id: \u0027a\u0027,\r\n num: 1\r\n },\r\n \u0027b\u0027: {\r\n id: \u0027b\u0027,\r\n num: 1\r\n },\r\n \u0027c\u0027: {\r\n id: \u0027c\u0027,\r\n num: 1\r\n },\r\n \u0027d\u0027: {\r\n id: \u0027d\u0027,\r\n num: 1\r\n },\r\n \u0027e\u0027: {\r\n id: \u0027e\u0027,\r\n num: 1\r\n },\r\n \u0027f\u0027: {\r\n id: \u0027f\u0027,\r\n num: 1\r\n },\r\n \u0027g\u0027: {\r\n id: \u0027g\u0027,\r\n num: 1\r\n },\r\n};","TestCases":[{"Name":"for-in","Code":"let sum = 0;\r\nfor (let key in obj) sum \u002B= obj[key].num;","IsDeferred":false},{"Name":"Object.keys","Code":"const sum = Object.keys(obj).reduce((acc, k) =\u003E acc \u002B obj[k].num, 0);","IsDeferred":false},{"Name":"Object.values","Code":"const sum = Object.values(obj).reduce((acc, v) =\u003E acc \u002B v.num, 0);","IsDeferred":false}]}