{"ScriptPreparationCode":null,"TestCases":[{"Name":"For of","Code":"var arr = [{id: 1, price: 50}, {id: 2, price: 100}];\r\nlet sum = 0;\r\n\r\nfor(let product of arr) {\r\n sum \u002B= product.price;\r\n}","IsDeferred":false},{"Name":"reduce","Code":"var arr = [{id: 1, price: 50}, {id: 2, price: 100}];\r\n\r\narr.reduce((acc, item) =\u003E {\r\n return acc \u002B item.price;\r\n}, 0)","IsDeferred":false}]}